Parameters support web wasm scenarios

This commit is contained in:
Tw93
2025-08-23 18:26:42 +08:00
parent 11737dbe68
commit 5c920cbd43
11 changed files with 81 additions and 17 deletions

13
bin/README.md vendored
View File

@@ -271,6 +271,19 @@ Launch the application in incognito/private browsing mode. Default is `false`. W
--incognito
```
#### [wasm]
Enable WebAssembly support with cross-origin isolation headers. Required for Flutter Web applications and other web applications that use WebAssembly modules like `sqlite3.wasm`, `canvaskit.wasm`. Default is `false`.
This option adds necessary HTTP headers (`Cross-Origin-Opener-Policy: same-origin` and `Cross-Origin-Embedder-Policy: require-corp`) and browser flags to enable SharedArrayBuffer and WebAssembly features.
```shell
--wasm
# Example: Package a Flutter Web app with WASM support
pake https://flutter.dev --name FlutterApp --wasm
```
#### [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`.