mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Use create-dmg to get a much nicer looking DMG that's also code-signed
This commit is contained in:
parent
917f6e5ee9
commit
5e82e8413f
@ -24,6 +24,8 @@
|
|||||||
<true/>
|
<true/>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>0.1.0</string>
|
<string>0.1.0</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>0.1.0</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>Moonlight</string>
|
<string>Moonlight</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# This script requires create-dmg to be installed from https://github.com/sindresorhus/create-dmg
|
||||||
BUILD_CONFIG=$1
|
BUILD_CONFIG=$1
|
||||||
|
|
||||||
fail()
|
fail()
|
||||||
@ -40,12 +41,12 @@ echo Copying frameworks dependencies
|
|||||||
mkdir $BUILD_FOLDER/app/Moonlight.app/Contents/Frameworks
|
mkdir $BUILD_FOLDER/app/Moonlight.app/Contents/Frameworks
|
||||||
cp -R $SOURCE_ROOT/libs/mac/Frameworks/ $BUILD_FOLDER/app/Moonlight.app/Contents/Frameworks/ || fail "Framework copy failed!"
|
cp -R $SOURCE_ROOT/libs/mac/Frameworks/ $BUILD_FOLDER/app/Moonlight.app/Contents/Frameworks/ || fail "Framework copy failed!"
|
||||||
|
|
||||||
echo Creating DMG
|
echo Creating app bundle
|
||||||
EXTRA_ARGS=
|
EXTRA_ARGS=
|
||||||
if [ "$BUILD_CONFIG" == "Debug" ]; then EXTRA_ARGS="$EXTRA_ARGS -use-debug-libs"; fi
|
if [ "$BUILD_CONFIG" == "Debug" ]; then EXTRA_ARGS="$EXTRA_ARGS -use-debug-libs"; fi
|
||||||
if [ "$SIGNING_KEY" != "" ]; then EXTRA_ARGS="$EXTRA_ARGS -codesign=$SIGNING_KEY"; fi
|
if [ "$SIGNING_KEY" != "" ]; then EXTRA_ARGS="$EXTRA_ARGS -codesign=$SIGNING_KEY"; fi
|
||||||
echo Extra deployment arguments: $EXTRA_ARGS
|
echo Extra deployment arguments: $EXTRA_ARGS
|
||||||
macdeployqt $BUILD_FOLDER/app/Moonlight.app -dmg $EXTRA_ARGS -qmldir=$SOURCE_ROOT/app/gui -appstore-compliant || fail "macdeployqt failed!"
|
macdeployqt $BUILD_FOLDER/app/Moonlight.app $EXTRA_ARGS -qmldir=$SOURCE_ROOT/app/gui -appstore-compliant || fail "macdeployqt failed!"
|
||||||
|
|
||||||
echo Deploying DMG
|
echo Creating DMG
|
||||||
mv $BUILD_FOLDER/app/Moonlight.dmg $INSTALLER_FOLDER/
|
create-dmg $BUILD_FOLDER/app/Moonlight.app $INSTALLER_FOLDER || fail "create-dmg failed!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user