Skip to content

Commit

Permalink
Update install script for macOS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
corbindavenport committed Nov 21, 2021
1 parent e47fdae commit e6a7c13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void connectAnalytics() async {
'user-agent': 'Nexus Tools',
'X-Forwarded-For': '127.0.0.1',
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 ($realOS) AppleWebKit/500 (KHTML, like Gecko) Chrome/$id'
'User-Agent': 'Mozilla/5.0 ($realOS) AppleWebKit/500 (KHTML, like Gecko) Chrome/$appVersion $id'
};
var netBody = '{"name":"pageview","url":"app://localhost/$realOS/$cpu","domain":"nexustools.corbin.io"}';
// Send request
Expand Down
10 changes: 3 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,9 @@ mkdir -p $DIR
if [ "$OS" = "Darwin" ]; then # macOS
# Install Rosetta x86 emulation layer if needed
if [ "$ARCH" = "arm64" ]; then
if /usr/bin/pgrep oahd >/dev/null 2>&1; then
echo "[ OK ] Rosetta compatibility layer is already installed."
else
echo "[WARN] Apple Rosetta compatibility layer must be installed. Press ENTER to install or X to cancel."
read -sn1 input
[ "$input" = "" ] && /usr/sbin/softwareupdate --install-rosetta --agree-to-license || exit
fi
echo "[WARN] Apple Rosetta compatibility layer will be enabled, if it has not been already. Press ENTER to install or X to cancel."
read -sn1 input
[ "$input" = "" ] && /usr/sbin/softwareupdate --install-rosetta --agree-to-license || exit
fi
DOWNLOAD="$BASEURL/releases/latest/download/nexustools-macos-x64.zip"
_run_executable
Expand Down

0 comments on commit e6a7c13

Please sign in to comment.