-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Running .app folders through macdeployqt to make them properly redist…
…ributable and archived in .dmg format
- Loading branch information
Showing
1 changed file
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
VERSION=0.9.1-pp1 | ||
OUTPUT=rpcemu-macos-$VERSION.zip | ||
VERSION=0.9.1-pp2 | ||
APPS="rpcemu-recompiler.app rpcemu-interpreter.app" | ||
rm -rf $APPS $OUTPUT | ||
cd src/qt5 | ||
export PATH="/usr/local/opt/qt/bin:$PATH" | ||
qmake | ||
make clean | ||
make | ||
qmake "CONFIG+=dynarec" | ||
make | ||
|
||
zip -r $OUTPUT $APPS | ||
function make_dmg { | ||
APP="$1" | ||
macdeployqt $APP.app -dmg | ||
mv $APP.dmg $APP-$VERSION.dmg | ||
} | ||
|
||
# Get rid of past build output | ||
rm -rf $APPS | ||
|
||
# Access Qt build tools | ||
export PATH="/usr/local/opt/qt/bin:$PATH"; | ||
|
||
# Build interpreter version | ||
(cd src/qt5; | ||
qmake -config release; | ||
#make clean; | ||
make; | ||
) | ||
make_dmg "rpcemu-interpreter" | ||
|
||
# Build recompiler version | ||
(cd src/qt5; | ||
qmake "CONFIG+=dynarec" -config release | ||
make | ||
) | ||
make_dmg "rpcemu-recompiler" |