Pake-cli adds the parameter to select the packaging format.

This commit is contained in:
Tlntin
2023-03-18 11:27:06 +08:00
parent 639e296335
commit 3edfa892d1
11 changed files with 203 additions and 113 deletions

1
bin/cli.ts vendored
View File

@@ -23,6 +23,7 @@ program
.option('-r, --no-resizable', 'whether the window can be resizable', DEFAULT_PAKE_OPTIONS.resizable)
.option('-d, --debug', 'debug', DEFAULT_PAKE_OPTIONS.debug)
.option('-m, --multi-arch', "available for Mac only, and supports both Intel and M1", DEFAULT_PAKE_OPTIONS.multiArch)
.option('--targets <string>', "Select the output package format, support deb/appimage/all, only for Linux", DEFAULT_PAKE_OPTIONS.targets)
.action(async (url: string, options: PakeCliOptions) => {
await checkUpdateTips();