mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-24 20:01:17 +00:00
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:
parent
c0d1807252
commit
7893fe500a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue