We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96d3eb0 commit eaf155dCopy full SHA for eaf155d
1 file changed
scripts/setup.sh
@@ -35,12 +35,22 @@ macOS_quarantine_fix () {
35
done
36
}
37
38
+detect_architecture() {
39
+ # Detect if running under Rosetta
40
+ if [[ "$(sysctl -n sysctl.proc_translated 2>/dev/null)" == "1" ]]; then
41
+ echo "x86_64" # Rosetta forces x86_64
42
+ else
43
+ uname -m # Native architecture
44
+ fi
45
+}
46
+
47
if [ ! -e "$SOAR_HOME/pkgIndex.tcl" ]; then
48
unamestr=$(uname)
49
if [[ "$unamestr" == 'Linux' ]]; then
50
linux64_setup
51
elif [[ "$unamestr" == 'Darwin' ]]; then
- if [ "$(uname -m)" == "arm64" ]; then
52
+ arch=$(detect_architecture)
53
+ if [ "$arch" == "arm64" ]; then
54
echo_yellow 'First time initialization of Soar for Mac OSX ARM64...'
55
mv "$SOAR_HOME/mac_ARM64/swt.jar" "$SOAR_HOME/java/"
56
mv "$SOAR_HOME/mac_ARM64"/* "$SOAR_HOME/"
0 commit comments