mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-24 01:40:18 +01:00
Use better name for the build script, move metadata to Platform/macOS/ folder
This commit is contained in:
parent
c0bbe2ba26
commit
fe3bb09e8a
4 changed files with 7 additions and 9 deletions
4
.github/workflows/ReleaseBuilds.yml
vendored
4
.github/workflows/ReleaseBuilds.yml
vendored
|
@ -11,9 +11,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
|
|
||||||
- run: bash build.sh
|
- run: bash build-mac-app.sh
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: mac-build
|
name: mac-build
|
||||||
path: packaging/*.dmg
|
path: *.dmg
|
||||||
|
|
|
@ -39,19 +39,17 @@ cd ..
|
||||||
cmake .
|
cmake .
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
|
||||||
cd packaging
|
|
||||||
|
|
||||||
sw_version='2.0.1'
|
sw_version='2.0.1'
|
||||||
|
|
||||||
mkdir -p SpaceCadetPinball.app/Contents/MacOS
|
mkdir -p SpaceCadetPinball.app/Contents/MacOS
|
||||||
mkdir -p SpaceCadetPinball.app/Contents/Resources
|
mkdir -p SpaceCadetPinball.app/Contents/Resources
|
||||||
mkdir -p SpaceCadetPinball.app/Contents/Frameworks
|
mkdir -p SpaceCadetPinball.app/Contents/Frameworks
|
||||||
|
|
||||||
cp -a Info.plist SpaceCadetPinball.app/Contents/
|
cp -a Platform/macOS/Info.plist SpaceCadetPinball.app/Contents/
|
||||||
cp -a SpaceCadetPinball.icns SpaceCadetPinball.app/Contents/Resources/
|
cp -a Platform/macOS/SpaceCadetPinball.icns SpaceCadetPinball.app/Contents/Resources/
|
||||||
cp -a ../extern/SDL2.framework SpaceCadetPinball.app/Contents/Frameworks/
|
cp -a extern/SDL2.framework SpaceCadetPinball.app/Contents/Frameworks/
|
||||||
cp -a ../extern/SDL2_mixer.framework SpaceCadetPinball.app/Contents/Frameworks/
|
cp -a extern/SDL2_mixer.framework SpaceCadetPinball.app/Contents/Frameworks/
|
||||||
cp -a ../bin/SpaceCadetPinball SpaceCadetPinball.app/Contents/MacOS/
|
cp -a bin/SpaceCadetPinball SpaceCadetPinball.app/Contents/MacOS/
|
||||||
|
|
||||||
sed -i '' "s/CHANGEME_SW_VERSION/$sw_version/" SpaceCadetPinball.app/Contents/Info.plist
|
sed -i '' "s/CHANGEME_SW_VERSION/$sw_version/" SpaceCadetPinball.app/Contents/Info.plist
|
||||||
|
|
Loading…
Reference in a new issue