feat(install): write UDIF/DMG-style containers

This commit is contained in:
faumaray committed 2026-12-05 13:31:04 +03:00
1 parent ac08887d8f
commit 1caeab70fa
7 files changed
+213 -4

No files matched your search

+4 -3
View File
@@ -2527,9 +2527,10 @@ int execute_install_command(const InstallCmdOptions &opts) {
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 != "rpm" && opts.archive_format_arg != "wix") {
opts.archive_format_arg != "rpm" && opts.archive_format_arg != "wix" &&
opts.archive_format_arg != "dmg") {
std::cerr << "vbs install: unsupported --archive-format '" << opts.archive_format_arg
<< "' (expected tar, sh, zip, deb, rpm or wix)\n";
<< "' (expected tar, sh, zip, deb, rpm, wix or dmg)\n";
return 2;
}
if (opts.archive_arg && !opts.archive_arg->empty()) {
@@ -3734,7 +3735,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, deb, rpm or wix",
"Installer archive format: tar (default), sh, zip, deb, rpm, wix or dmg",
install_opts.archive_format_arg, "tar")
.option("--signing-key", "",
"Ed25519 seed file; signs the archive and writes .sha256/.sig/.pub",