|
@@ -14,19 +14,14 @@ 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="./staging" # we copy all our stuff into this dir
|
|
|
|
|
|
# Check the background image DPI and convert it if it isn't 72x72
|
|
# Check the background image DPI and convert it if it isn't 72x72
|
|
_BACKGROUND_IMAGE_DPI_H=`sips -g dpiHeight ${DMG_BACKGROUND_IMG} | grep -Eo '[0-9]+\.[0-9]+'`
|
|
_BACKGROUND_IMAGE_DPI_H=`sips -g dpiHeight ${DMG_BACKGROUND_IMG} | grep -Eo '[0-9]+\.[0-9]+'`
|
|
@@ -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
|