On Windows, look for the zip tool as part of the Cygwin installation instead of relying on it being in the current path.

This is specific to the configuration of build-windows.
This commit is contained in:
Robert Knight 2011-08-22 18:03:53 +01:00
parent c0d1807252
commit 7893fe500a

View file

@ -9,6 +9,7 @@ OLDAPP_NAME = "oldapp.exe"
NEWAPP_NAME = "newapp.exe"
APP_NAME = "app.exe"
UPDATER_NAME = "updater.exe"
ZIP_TOOL = "C:/Cygwin/bin/zip.exe"
# Remove the install and package dirs if they
# already exist
@ -28,7 +29,7 @@ end
# Create the update archive containing the new app
Dir.mkdir(PACKAGE_DIR)
FileUtils.cp(NEWAPP_NAME,"#{PACKAGE_DIR}/#{APP_NAME}")
system("zip #{PACKAGE_DIR}/app-pkg.zip -j #{PACKAGE_DIR}/#{APP_NAME}")
system("#{ZIP_TOOL} #{PACKAGE_DIR}/app-pkg.zip -j #{PACKAGE_DIR}/#{APP_NAME}")
FileUtils.rm("#{PACKAGE_DIR}/#{APP_NAME}")
# Copy the install script and updater to the target