Support drag-and-drop configuration

This commit is contained in:
Tw93
2025-08-31 15:29:28 +08:00
parent c68daf6ed6
commit bd764f5f5f
9 changed files with 54 additions and 6 deletions

10
bin/cli.ts vendored
View File

@@ -125,7 +125,10 @@ program
.hideHelp(),
)
.addOption(
new Option('--hide-on-close', 'Hide window on close instead of exiting (default: true for macOS, false for others)')
new Option(
'--hide-on-close',
'Hide window on close instead of exiting (default: true for macOS, false for others)',
)
.default(DEFAULT.hideOnClose)
.hideHelp(),
)
@@ -140,6 +143,11 @@ program
.default(DEFAULT.wasm)
.hideHelp(),
)
.addOption(
new Option('--enable-drag-drop', 'Enable drag and drop functionality')
.default(DEFAULT.enableDragDrop)
.hideHelp(),
)
.addOption(
new Option('--installer-language <string>', 'Installer language')
.default(DEFAULT.installerLanguage)