diff --git a/package/osx/create-dmg/create-dmg b/package/osx/create-dmg/create-dmg index 3e55dd974..2c306bc3d 100755 --- a/package/osx/create-dmg/create-dmg +++ b/package/osx/create-dmg/create-dmg @@ -180,7 +180,7 @@ if ! test -z "$VOLUME_ICON_FILE"; then fi # run applescript -APPLESCRIPT=$(mktemp -t createdmg) +APPLESCRIPT=$(mktemp -t createdmg.XXXXXX) cat "$AUX_PATH/template.applescript" | sed -e "s/WINX/$WINX/g" -e "s/WINY/$WINY/g" -e "s/WINW/$WINW/g" -e "s/WINH/$WINH/g" -e "s/BACKGROUND_CLAUSE/$BACKGROUND_CLAUSE/g" -e "s/REPOSITION_HIDDEN_FILES_CLAUSE/$REPOSITION_HIDDEN_FILES_CLAUSE/g" -e "s/ICON_SIZE/$ICON_SIZE/g" -e "s/TEXT_SIZE/$TEXT_SIZE/g" | perl -pe "s/POSITION_CLAUSE/$POSITION_CLAUSE/g" | perl -pe "s/APPLICATION_CLAUSE/$APPLICATION_CLAUSE/g" | perl -pe "s/HIDING_CLAUSE/$HIDING_CLAUSE/" >"$APPLESCRIPT" echo "Running Applescript: /usr/bin/osascript \"${APPLESCRIPT}\" \"${VOLUME_NAME}\""