feat(install): generate RPM packages
This commit is contained in:
1 parent
2b80718f98
commit
3198b32f2b
7 files changed
+365
-82
No files matched your search
+5
-6
@@ -514,7 +514,6 @@ int execute_build_or_test(BuildCmdOptions opts, bool run_tests) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
const std::string target_os = opts.target_os_arg.value_or(Toolchain::host_os_name());
|
||||
const std::string target_arch =
|
||||
opts.target_arch_arg.value_or(Toolchain::host_architecture_name());
|
||||
@@ -1877,9 +1876,10 @@ int execute_install_command(const InstallCmdOptions &opts) {
|
||||
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" &&
|
||||
opts.archive_format_arg != "zip" && opts.archive_format_arg != "deb") {
|
||||
opts.archive_format_arg != "zip" && opts.archive_format_arg != "deb" &&
|
||||
opts.archive_format_arg != "rpm") {
|
||||
std::cerr << "vbs install: unsupported --archive-format '" << opts.archive_format_arg
|
||||
<< "' (expected tar, sh, zip or deb)\n";
|
||||
<< "' (expected tar, sh, zip, deb or rpm)\n";
|
||||
return 2;
|
||||
}
|
||||
if (opts.archive_arg && !opts.archive_arg->empty()) {
|
||||
@@ -3040,7 +3040,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), sh, zip or deb",
|
||||
"Installer archive format: tar (default), sh, zip, deb or rpm",
|
||||
install_opts.archive_format_arg, "tar")
|
||||
.option("--signing-key", "",
|
||||
"Ed25519 seed file; signs the archive and writes .sha256/.sig/.pub",
|
||||
@@ -3213,8 +3213,7 @@ int main(int argc, char **argv) {
|
||||
auto &gc_cmd =
|
||||
root.subcommand("gc", "Recover interrupted state and garbage-collect unreferenced blobs");
|
||||
gc_cmd
|
||||
.option_default("--build-dir", "-B", "Build directory", gc_opts.build_arg,
|
||||
gc_default_build)
|
||||
.option_default("--build-dir", "-B", "Build directory", gc_opts.build_arg, gc_default_build)
|
||||
.option_default("--max-bytes", "",
|
||||
"Target maximum retained CAS bytes (0=unreferenced only)",
|
||||
gc_opts.max_bytes_arg, "0");
|
||||
|
||||
Reference in new issue
Block a user