Browse Source

Merge pull request #44 from MyHush/denio

fix apple build
pull/46/head
Denio 5 years ago
committed by GitHub
parent
commit
41ac4f0b33
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/scripts/mkmacdmg.sh

6
src/scripts/mkmacdmg.sh

@ -55,7 +55,7 @@ export PATH=$PATH:/usr/local/bin
#Clean #Clean
echo -n "Cleaning..............." echo -n "Cleaning..............."
make distclean >/dev/null 2>&1 make distclean >/dev/null 2>&1
rm -f artifacts/macOS-silentdragonlite-v$APP_VERSION.dmg rm -f artifacts/macOS-SilentDragonLite-v$APP_VERSION.dmg
echo "[OK]" echo "[OK]"
@ -73,7 +73,7 @@ echo "[OK]"
#Qt deploy #Qt deploy
echo -n "Deploying.............." echo -n "Deploying.............."
mkdir artifacts >/dev/null 2>&1 mkdir artifacts >/dev/null 2>&1
rm -f artifcats/Silentdragonlite.dmg >/dev/null 2>&1 rm -f artifcats/SilentDragonLite.dmg >/dev/null 2>&1
rm -f artifacts/rw* >/dev/null 2>&1 rm -f artifacts/rw* >/dev/null 2>&1
$QT_PATH/bin/macdeployqt SilentDragonLite.app $QT_PATH/bin/macdeployqt SilentDragonLite.app
codesign --deep --force --verify --verbose -s "$CERTIFICATE" --options runtime --timestamp SilentDragonLite.app/ codesign --deep --force --verify --verbose -s "$CERTIFICATE" --options runtime --timestamp SilentDragonLite.app/
@ -81,7 +81,7 @@ echo "[OK]"
echo -n "Building dmg..........." echo -n "Building dmg..........."
mv silentdragonlite.app Silentdragonlite.app mv SilentDragonLite.app SilentDragonLite.app
create-dmg --volname "SilentDragonLite-v$APP_VERSION" --volicon "res/logo.icns" --window-pos 200 120 --icon "SilentDragonLite.app" 200 190 --app-drop-link 600 185 --hide-extension "SilentDragonLite.app" --window-size 800 400 --hdiutil-quiet --background res/dmgbg.png artifacts/macOS-SilentDragonLite-v$APP_VERSION.dmg SilentDragonLite.app >/dev/null 2>&1 create-dmg --volname "SilentDragonLite-v$APP_VERSION" --volicon "res/logo.icns" --window-pos 200 120 --icon "SilentDragonLite.app" 200 190 --app-drop-link 600 185 --hide-extension "SilentDragonLite.app" --window-size 800 400 --hdiutil-quiet --background res/dmgbg.png artifacts/macOS-SilentDragonLite-v$APP_VERSION.dmg SilentDragonLite.app >/dev/null 2>&1
if [ ! -f artifacts/macOS-SilentDragonLite-v$APP_VERSION.dmg ]; then if [ ! -f artifacts/macOS-SilentDragonLite-v$APP_VERSION.dmg ]; then

Loading…
Cancel
Save