mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-04-12 09:11:14 +00:00
If no custom updater binary is specified in the arguments to create-packages.rb, use the copy from the install directory.
This commit is contained in:
parent
635fecbd67
commit
c9c19fad3b
1 changed files with 4 additions and 0 deletions
|
@ -339,6 +339,9 @@ package_file_map.each do |package,files|
|
|||
# do not package the updater binary into a zip file -
|
||||
# it must be downloaded uncompressed
|
||||
if package_config.is_updater(file)
|
||||
if (!updater_binary_input_path)
|
||||
updater_binary_input_path = file
|
||||
end
|
||||
next
|
||||
end
|
||||
quoted_files << "\"#{strip_prefix(file,input_dir)}\""
|
||||
|
@ -378,6 +381,7 @@ package_file_map.each do |package,files|
|
|||
end
|
||||
|
||||
# copy the updater to the output directory
|
||||
puts "Using updater binary: #{updater_binary_input_path}"
|
||||
if !updater_binary_input_path
|
||||
puts "Updater binary not found in input directory: #{input_dir}"
|
||||
exit(1)
|
||||
|
|
Loading…
Reference in a new issue