Browse Source

fix dmg background and script

circular17 6 years ago
parent
commit
8edb615bfb
2 changed files with 4 additions and 9 deletions
  1. BIN
      lazpaint/release/macOS/background.png
  2. 4 9
      lazpaint/release/macOS/makedmg.sh

BIN
lazpaint/release/macOS/background.png


+ 4 - 9
lazpaint/release/macOS/makedmg.sh

@@ -14,16 +14,11 @@ fi
 appname=LazPaint
 appname=LazPaint
 appversion=7.0.6
 appversion=7.0.6
 pkgversion=0
 pkgversion=0
-
-appnamenospaces=LazPaint
-dskimage="$appnamenospaces"
+appnamenospaces=lazpaint
 appbundle="$appname.app"
 appbundle="$appname.app"
 
 
 DMG_BACKGROUND_IMG="background.png"
 DMG_BACKGROUND_IMG="background.png"
-
-
-
-VOL_NAME="${appname}"   
+VOL_NAME="$appnamenospaces${appversion}_macOS"   
 DMG_TMP="${VOL_NAME}-temp.dmg"
 DMG_TMP="${VOL_NAME}-temp.dmg"
 DMG_FINAL="${VOL_NAME}.dmg"         
 DMG_FINAL="${VOL_NAME}.dmg"         
 STAGING_DIR="./macOS"             # we copy all our stuff into this dir
 STAGING_DIR="./macOS"             # we copy all our stuff into this dir
@@ -48,7 +43,7 @@ rm -rf "${STAGING_DIR}" "${DMG_TMP}" "${DMG_FINAL}"
 
 
 # copy over the stuff we want in the final disk image to our staging dir
 # copy over the stuff we want in the final disk image to our staging dir
 mkdir -p "${STAGING_DIR}"
 mkdir -p "${STAGING_DIR}"
-cp -rpf ./LazPaint.app "${STAGING_DIR}"
+cp -rpf "./$appbundle" "${STAGING_DIR}"
 # ... cp anything else you want in the DMG - documentation, etc.
 # ... cp anything else you want in the DMG - documentation, etc.
 
 
 pushd "${STAGING_DIR}"
 pushd "${STAGING_DIR}"
@@ -103,7 +98,7 @@ echo '
            set arrangement of viewOptions to not arranged
            set arrangement of viewOptions to not arranged
            set icon size of viewOptions to 72
            set icon size of viewOptions to 72
            set background picture of viewOptions to file ".background:'${DMG_BACKGROUND_IMG}'"
            set background picture of viewOptions to file ".background:'${DMG_BACKGROUND_IMG}'"
-           set position of item "'${appname}'.app" of container window to {160, 205}
+           set position of item "'$appbundle'" of container window to {160, 205}
            set position of item "Applications" of container window to {360, 205}
            set position of item "Applications" of container window to {360, 205}
            close
            close
            open
            open