feat(install): generate ZIP and Debian packages
This commit is contained in:
1 parent
a808596462
commit
9509c0691e
8 files changed
+345
-14
No files matched your search
+5
-4
@@ -1723,14 +1723,15 @@ int execute_install_command(const InstallCmdOptions &opts) {
|
||||
iopts.export_cmake_config = !opts.no_cmake_export;
|
||||
iopts.export_native_metadata = !opts.no_native_export;
|
||||
iopts.bundle_runtime_dependencies = opts.bundle_dependencies;
|
||||
if (opts.archive_format_arg != "tar" && opts.archive_format_arg != "sh") {
|
||||
if (opts.archive_format_arg != "tar" && opts.archive_format_arg != "sh" &&
|
||||
opts.archive_format_arg != "zip" && opts.archive_format_arg != "deb") {
|
||||
std::cerr << "vbs install: unsupported --archive-format '" << opts.archive_format_arg
|
||||
<< "' (expected tar or sh)\n";
|
||||
<< "' (expected tar, sh, zip or deb)\n";
|
||||
return 2;
|
||||
}
|
||||
if (opts.archive_arg && !opts.archive_arg->empty()) {
|
||||
iopts.archive_path = std::filesystem::path{*opts.archive_arg};
|
||||
iopts.archive_as_script = opts.archive_format_arg == "sh";
|
||||
iopts.archive_format = opts.archive_format_arg;
|
||||
}
|
||||
|
||||
std::error_code ec;
|
||||
@@ -2872,7 +2873,7 @@ int main(int argc, char **argv) {
|
||||
.option("--archive", "", "Write a deterministic installer archive of the prefix",
|
||||
install_opts.archive_arg)
|
||||
.option_default("--archive-format", "",
|
||||
"Installer archive format: tar (default) or sh (self-extracting)",
|
||||
"Installer archive format: tar (default), sh, zip or deb",
|
||||
install_opts.archive_format_arg, "tar");
|
||||
add_log_flags(install_cmd);
|
||||
|
||||
|
||||
Reference in new issue
Block a user