From 3bf87c1eb3973b0862c8003be28c784e76a688c8 Mon Sep 17 00:00:00 2001 From: Roy Bekken Date: Mon, 10 Aug 2015 12:20:06 +0200 Subject: [PATCH] Fix package building on OSX if GNU mktemp is used. This will be valid for both versions. --- package/osx/create-dmg/create-dmg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}\""