From 1c3dadab32b4359dddaf16ee06a69e3a86f1dc4f Mon Sep 17 00:00:00 2001 From: Serge Guzik Date: Sat, 16 Feb 2019 17:44:59 +0200 Subject: [PATCH] fix: Executable not found when creating archive for windows --- warp4j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warp4j b/warp4j index 9143ad0..89f33e3 100755 --- a/warp4j +++ b/warp4j @@ -643,7 +643,6 @@ function warp_targets() { --exec "$LAUNCHER_NAME.cmd" \ --output "$WARPED_TEMP_PATH/$WIN/$APP_NAME.exe" \ &> /dev/null - mv "$WARPED_TEMP_PATH/$WIN/$APP_NAME.exe" "$WARPED_PATH/$APP_NAME-windows.exe" if command -v zip &> /dev/null ; then ( cd "$WARPED_TEMP_PATH/$WIN" zip -r "$WARPED_TEMP_PATH/$APP_NAME-$WIN-x64.zip" "$APP_NAME.exe" &> /dev/null @@ -651,6 +650,7 @@ function warp_targets() { ) else echo "Warning: 'zip' not found, will skip creation of archive for windows" >&2 fi + mv "$WARPED_TEMP_PATH/$WIN/$APP_NAME.exe" "$WARPED_PATH/$APP_NAME-windows.exe" rmdir "$WARPED_TEMP_PATH/$WIN" fi