mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add macOS universal app convenience script
This commit is contained in:
parent
49a61b6c51
commit
6871b3a0d5
1 changed files with 23 additions and 0 deletions
23
scripts/make-macos-universal.sh
Executable file
23
scripts/make-macos-universal.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
# Makes a fused macOS Universal app bundle in the arm64 release preset dir
|
||||
# Only works if in master branch or in source tarball
|
||||
|
||||
set -e
|
||||
|
||||
cmake --preset ninja-x64_osx_vcpkg-release
|
||||
cmake --build --preset ninja-x64_osx_vcpkg-release
|
||||
cmake --preset ninja-arm64_osx_vcpkg-release
|
||||
cmake --build --preset ninja-arm64_osx_vcpkg-release
|
||||
|
||||
mkdir -p build/dist
|
||||
rm -rf "build/dist/Dr. Robotnik's Ring Racers.app" "build/dist/ringracers.app"
|
||||
|
||||
cp -r build/ninja-arm64_osx_vcpkg-release/bin/ringracers.app build/dist/
|
||||
|
||||
lipo -create \
|
||||
-output "build/dist/ringracers.app/Contents/MacOS/ringracers" \
|
||||
build/ninja-x64_osx_vcpkg-release/bin/ringracers.app/Contents/MacOS/ringracers \
|
||||
build/ninja-arm64_osx_vcpkg-release/bin/ringracers.app/Contents/MacOS/ringracers
|
||||
|
||||
mv build/dist/ringracers.app "build/dist/Dr. Robotnik's Ring Racers.app"
|
||||
Loading…
Add table
Reference in a new issue