fix: Executable not found when creating archive for windows

This commit is contained in:
Serge Guzik 2019-02-16 17:44:59 +02:00
parent c18dd33c53
commit 1c3dadab32

2
warp4j
View File

@ -643,7 +643,6 @@ function warp_targets() {
--exec "$LAUNCHER_NAME.cmd" \ --exec "$LAUNCHER_NAME.cmd" \
--output "$WARPED_TEMP_PATH/$WIN/$APP_NAME.exe" \ --output "$WARPED_TEMP_PATH/$WIN/$APP_NAME.exe" \
&> /dev/null &> /dev/null
mv "$WARPED_TEMP_PATH/$WIN/$APP_NAME.exe" "$WARPED_PATH/$APP_NAME-windows.exe"
if command -v zip &> /dev/null ; then ( if command -v zip &> /dev/null ; then (
cd "$WARPED_TEMP_PATH/$WIN" cd "$WARPED_TEMP_PATH/$WIN"
zip -r "$WARPED_TEMP_PATH/$APP_NAME-$WIN-x64.zip" "$APP_NAME.exe" &> /dev/null zip -r "$WARPED_TEMP_PATH/$APP_NAME-$WIN-x64.zip" "$APP_NAME.exe" &> /dev/null
@ -651,6 +650,7 @@ function warp_targets() {
) else ) else
echo "Warning: 'zip' not found, will skip creation of archive for windows" >&2 echo "Warning: 'zip' not found, will skip creation of archive for windows" >&2
fi fi
mv "$WARPED_TEMP_PATH/$WIN/$APP_NAME.exe" "$WARPED_PATH/$APP_NAME-windows.exe"
rmdir "$WARPED_TEMP_PATH/$WIN" rmdir "$WARPED_TEMP_PATH/$WIN"
fi fi