Use Windows/Unix versions of test binary names in test-update.rb depending on the host OS

This commit is contained in:
Robert Knight 2011-08-23 10:31:35 +01:00
parent b43d9f33bf
commit f1367671b6

View file

@ -1,15 +1,24 @@
#!/usr/bin/ruby
require 'fileutils.rb'
require 'rbconfig'
INSTALL_DIR = "install-dir/"
PACKAGE_DIR = "package-dir/"
OLDAPP_NAME = "oldapp.exe"
NEWAPP_NAME = "newapp.exe"
APP_NAME = "app.exe"
UPDATER_NAME = "updater.exe"
ZIP_TOOL = "C:/Cygwin/bin/zip.exe"
if (RbConfig::CONFIG['host_os'] =~ /mswin|mingw/)
OLDAPP_NAME = "oldapp.exe"
NEWAPP_NAME = "newapp.exe"
APP_NAME = "app.exe"
UPDATER_NAME = "updater.exe"
ZIP_TOOL = "C:/Cygwin/bin/zip.exe"
else
OLDAPP_NAME = "oldapp"
NEWAPP_NAME = "newapp"
APP_NAME = "app"
UPDATER_NAME = "updater"
ZIP_TOOL = "zip"
end
file_list_vars = {
"APP_FILENAME" => APP_NAME