Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions tools/create-packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def package_for_file(file)
target_version = nil
target_platform = nil
zip_flags = nil
include_updater = nil

OptionParser.new do |parser|
parser.banner = "#{$0} [options] <input dir> <config file> <output dir>"
Expand All @@ -287,6 +288,9 @@ def package_for_file(file)
parser.on(nil,"--bzip2","Use bzip2 compression (requires that 'zip' supports the -Z bz2 argument)") do
zip_flags = "-Z bzip2"
end
parser.on(nil,"--include-updater","Don't skip the updater executable file when creating packages") do
include_updater = true
end
end.parse!

raise "Platform not specified (use -p option)" if !target_platform
Expand Down Expand Up @@ -335,13 +339,13 @@ def package_for_file(file)

quoted_files = []
files.each do |file|
# 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
# Unless told otherwise, do not package the updater binary into the
# zip file - to be be downloaded uncompressed in a separate package.
next unless include_updater
end
quoted_files << "\"#{strip_prefix(file,input_dir)}\""
end
Expand Down