Add version and title to dmg
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"title": "zec-qt-wallet",
|
||||
"title": "zec-qt-wallet-vRELEASE_VERSION",
|
||||
"icon": "logo.icns",
|
||||
"background": "dmgbg.png",
|
||||
"window" : {
|
||||
@@ -8,6 +8,6 @@
|
||||
},
|
||||
"contents": [
|
||||
{ "x": 448, "y": 80, "type": "link", "path": "/Applications" },
|
||||
{ "x": 152, "y": 80, "type": "file", "path": "../zec-qt-wallet.app" }
|
||||
{ "x": 152, "y": 80, "type": "file", "path": "zec-qt-wallet.app" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -40,7 +40,14 @@ echo "[OK]"
|
||||
|
||||
echo -n "Building dmg........"
|
||||
# create-dmg --volname "zec-qt-wallet-v$APP_VERSION" --volicon "res/logo.icns" --window-pos 200 120 --icon "zec-qt-wallet.app" 200 190 --app-drop-link 600 185 --hide-extension "zec-qt-wallet.app" --window-size 800 400 --hdiutil-quiet --background res/dmgbg.png artifacts/zec-qt-wallet.dmg zec-qt-wallet.app >/dev/null
|
||||
appdmg --quiet res/appdmg.json artifacts/zec-qt-wallet-v$APP_VERSION.dmg >/dev/null
|
||||
mkdir bin/dmgbuild >/dev/null 2>&1
|
||||
sed "s/RELEASE_VERSION/${APP_VERSION}/g" res/appdmg.json > bin/dmgbuild/appdmg.json
|
||||
cp res/logo.icns bin/dmgbuild/
|
||||
cp res/dmgbg.png bin/dmgbuild/
|
||||
|
||||
cp -r zec-qt-wallet.app bin/dmgbuild/
|
||||
|
||||
appdmg --quiet bin/dmgbuild/appdmg.json artifacts/zec-qt-wallet-v$APP_VERSION.dmg >/dev/null
|
||||
if [ ! -f artifacts/zec-qt-wallet-v$APP_VERSION.dmg ]; then
|
||||
echo "[ERROR]"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user