add multi-architecture support for MacOS

This commit is contained in:
Tlntin
2023-01-26 11:42:54 +08:00
parent e238d242db
commit 7c07d3f227
7 changed files with 79 additions and 10 deletions

3
bin/cli.ts vendored
View File

@@ -21,7 +21,8 @@ program
.option('--no-resizable', 'whether the window can be resizable', DEFAULT_PAKE_OPTIONS.resizable)
.option('-f, --fullscreen', 'makes the packaged app start in full screen', DEFAULT_PAKE_OPTIONS.fullscreen)
.option('-t, --transparent', 'transparent title bar', DEFAULT_PAKE_OPTIONS.transparent)
.option('-d, --debug', 'debug', DEFAULT_PAKE_OPTIONS.transparent)
.option('-d, --debug', 'debug', DEFAULT_PAKE_OPTIONS.debug)
.option('-m, --multi-arch', "Supports both Intel and m1 chips, only for Mac.", DEFAULT_PAKE_OPTIONS.multi_arch)
.action(async (url: string, options: PakeCliOptions) => {
await checkUpdateTips();