Add the multi_arch parameter of the master branch to the pake-cli

This commit is contained in:
Tlntin
2023-04-08 11:18:48 +08:00
parent 709f7532a4
commit da615bb1c7
6 changed files with 104 additions and 15 deletions

8
bin/cli.ts vendored
View File

@@ -30,10 +30,16 @@ program
.option('--iter-copy-file',
'copy all static file to pake app when url is a local file',
DEFAULT_PAKE_OPTIONS.iterCopyFile)
.option(
'-m, --multi-arch',
"available for Mac only, and supports both Intel and M1",
DEFAULT_PAKE_OPTIONS.multiArch
)
.option(
'--targets <string>',
'only for linux, default is "deb", option "appaimge" or "all"(deb & appimage)',
DEFAULT_PAKE_OPTIONS.targets)
DEFAULT_PAKE_OPTIONS.targets
)
.option('--debug', 'debug', DEFAULT_PAKE_OPTIONS.transparent)
.action(async (url: string, options: PakeCliOptions) => {
checkUpdateTips();