support multiple-instances

This commit is contained in:
Tw93
2025-10-06 12:25:38 +08:00
parent 7ee7924eec
commit 3d4c018641
10 changed files with 61 additions and 18 deletions

View File

@@ -350,6 +350,17 @@ pake https://github.com --name GitHub --keep-binary
**Output**: Creates both installer and standalone executable (`AppName-binary` on Unix, `AppName.exe` on Windows).
#### [multi-instance]
Allow the packaged app to run more than one instance at the same time. Default is `false`, which means launching a second instance simply focuses the existing window. Enable this when you need to open several windows of the same app simultaneously.
```shell
--multi-instance
# Example: Allow multiple chat windows
pake https://chat.example.com --name ChatApp --multi-instance
```
#### [installer-language]
Set the Windows Installer language. Options include `zh-CN`, `ja-JP`, More at [Tauri Document](https://tauri.app/distribute/windows-installer/#internationalization). Default is `en-US`.