Skip to content

Commit

Permalink
[macOS] Add Architecture Priority to Info.plist (HarbourMasters#3727)
Browse files Browse the repository at this point in the history
* Add Architecture Priority to  Info.plist

This allows the app bundle to be launched natively on Arm without the need for Rosetta.

* Remove arch shenanigans in soh-macos.sh.in

Shouldn't be necessary now...

* Add back launching the binary in soh-macos.sh.in

Accidentally removed launching the binary from the script.
  • Loading branch information
shinra-electric authored Dec 29, 2023
1 parent a08943e commit b7342a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions soh/macosx/Info.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
<string>public.app-category.games</string>
<key>LSMinimumSystemVersion</key>
<string>10.15</string>
<key>LSArchitecturePriority</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
</dict>
</plist>
7 changes: 1 addition & 6 deletions soh/macosx/soh-macos.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,6 @@ fi
cd "$SNAME"
arch_name="$(uname -m)"
launch_arch="arm64"
if [ "${arch_name}" = "x86_64" ] && [ "$(sysctl -in sysctl.proc_translated)" != "1" ]; then
launch_arch="x86_64"
fi
"$RESPATH"/soh-macos
arch -${launch_arch} "$RESPATH"/soh-macos
exit

0 comments on commit b7342a7

Please sign in to comment.