diff options
| author | Alex0007 <Alex0007lolpvp@gmail.com> | 2024-01-23 02:10:25 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-22 23:10:25 +0100 |
| commit | 34a9922b57b582fb18a670241f7efe43d4723fe7 (patch) | |
| tree | d1bb89e235a1678487e73be1b3af0a01421e0788 /distribution/macos | |
| parent | 4df22eb86707005821a5012421a76b308bcc1989 (diff) | |
Fix architecture preference for MacOS game shortcuts (#6145)
* Fix architecture preference for MacOS game shortcuts
* Detect arch and then pass it to script
Co-authored-by: jcm <john.moody@coloradocollege.edu>
* Remove old script write call in `CreateShortcutMacos`
* Turn launch script into EmbeddedResource
* Added final newline
---------
Co-authored-by: jcm <john.moody@coloradocollege.edu>
Diffstat (limited to 'distribution/macos')
| -rw-r--r-- | distribution/macos/shortcut-launch-script.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/distribution/macos/shortcut-launch-script.sh b/distribution/macos/shortcut-launch-script.sh new file mode 100644 index 00000000..784d780a --- /dev/null +++ b/distribution/macos/shortcut-launch-script.sh @@ -0,0 +1,8 @@ +#!/bin/sh +launch_arch="$(uname -m)" +if [ "$(sysctl -in sysctl.proc_translated)" = "1" ] +then + launch_arch="arm64" +fi + +arch -$launch_arch {0} {1} |
