Skip to content

Commit e6a7c13

Browse files
Update install script for macOS 12
1 parent e47fdae commit e6a7c13

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

bin/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void connectAnalytics() async {
204204
'user-agent': 'Nexus Tools',
205205
'X-Forwarded-For': '127.0.0.1',
206206
'Content-Type': 'application/json',
207-
'User-Agent': 'Mozilla/5.0 ($realOS) AppleWebKit/500 (KHTML, like Gecko) Chrome/$id'
207+
'User-Agent': 'Mozilla/5.0 ($realOS) AppleWebKit/500 (KHTML, like Gecko) Chrome/$appVersion $id'
208208
};
209209
var netBody = '{"name":"pageview","url":"app://localhost/$realOS/$cpu","domain":"nexustools.corbin.io"}';
210210
// Send request

install.sh

+3-7
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ mkdir -p $DIR
3636
if [ "$OS" = "Darwin" ]; then # macOS
3737
# Install Rosetta x86 emulation layer if needed
3838
if [ "$ARCH" = "arm64" ]; then
39-
if /usr/bin/pgrep oahd >/dev/null 2>&1; then
40-
echo "[ OK ] Rosetta compatibility layer is already installed."
41-
else
42-
echo "[WARN] Apple Rosetta compatibility layer must be installed. Press ENTER to install or X to cancel."
43-
read -sn1 input
44-
[ "$input" = "" ] && /usr/sbin/softwareupdate --install-rosetta --agree-to-license || exit
45-
fi
39+
echo "[WARN] Apple Rosetta compatibility layer will be enabled, if it has not been already. Press ENTER to install or X to cancel."
40+
read -sn1 input
41+
[ "$input" = "" ] && /usr/sbin/softwareupdate --install-rosetta --agree-to-license || exit
4642
fi
4743
DOWNLOAD="$BASEURL/releases/latest/download/nexustools-macos-x64.zip"
4844
_run_executable

0 commit comments

Comments
 (0)