🔖 2.1.6 CLI
This commit is contained in:
10
bin/cli.ts
vendored
10
bin/cli.ts
vendored
@@ -19,17 +19,17 @@ program
|
||||
.argument('[url]', 'The web URL you want to package', validateUrlInput)
|
||||
.option('--name <string>', 'Application name')
|
||||
.option('--icon <string>', 'Application icon', DEFAULT.icon)
|
||||
.option('--height <number>', 'Window height', validateNumberInput, DEFAULT.height)
|
||||
.option('--width <number>', 'Window width', validateNumberInput, DEFAULT.width)
|
||||
.option('--fullscreen', 'Start the packaged app in full screen', DEFAULT.fullscreen)
|
||||
.option('--transparent', 'Transparent title bar', DEFAULT.transparent)
|
||||
.option('--height <number>', 'Window height', validateNumberInput, DEFAULT.height)
|
||||
.option('--transparent', 'Only for Mac, hide title bar', DEFAULT.transparent)
|
||||
.option('--fullscreen', 'Start in full screen', DEFAULT.fullscreen)
|
||||
.option('--user-agent <string>', 'Custom user agent', DEFAULT.userAgent)
|
||||
.option('--show-menu', 'Show menu in app', DEFAULT.showMenu)
|
||||
.option('--show-system-tray', 'Show system tray in app', DEFAULT.showSystemTray)
|
||||
.option('--system-tray-icon <string>', 'Custom system tray icon', DEFAULT.systemTrayIcon)
|
||||
.option('--iter-copy-file', 'Copy files to app when URL is a local file', DEFAULT.iterCopyFile)
|
||||
.option('--iter-copy-file', 'Copy files when URL is a local file', DEFAULT.iterCopyFile)
|
||||
.option('--multi-arch', 'Only for Mac, supports both Intel and M1', DEFAULT.multiArch)
|
||||
.option('--targets <string>', 'Only for Linux, option "deb", "appimage" or "all"', DEFAULT.targets)
|
||||
.option('--targets <string>', 'Only for Linux, option "deb" or "appimage"', DEFAULT.targets)
|
||||
.option('--debug', 'Debug mode', DEFAULT.debug)
|
||||
.version(packageJson.version, '-v, --version', 'Output the current version')
|
||||
.action(async (url: string, options: PakeCliOptions) => {
|
||||
|
||||
Reference in New Issue
Block a user