pake-cli 3.2.16 → 3.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -17
- package/dist/cli.js +202 -173
- package/package.json +11 -9
- package/src-tauri/.cargo/config.toml +0 -11
- package/src-tauri/.pake/pake.json +5 -4
- package/src-tauri/.pake/tauri.conf.json +9 -7
- package/src-tauri/.pake/tauri.macos.conf.json +3 -4
- package/src-tauri/gen/schemas/capabilities.json +1 -1
- package/src-tauri/src/app/config.rs +1 -0
- package/src-tauri/src/app/window.rs +7 -0
- package/src-tauri/tauri.conf.json +3 -0
- package/src-tauri/gen/schemas/windows-schema.json +0 -2326
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"windows": [
|
|
3
3
|
{
|
|
4
|
-
"url": "https://
|
|
4
|
+
"url": "https://github.com",
|
|
5
5
|
"url_type": "web",
|
|
6
|
-
"hide_title_bar":
|
|
6
|
+
"hide_title_bar": true,
|
|
7
7
|
"fullscreen": false,
|
|
8
8
|
"width": 1200,
|
|
9
|
-
"height":
|
|
9
|
+
"height": 800,
|
|
10
10
|
"resizable": true,
|
|
11
11
|
"always_on_top": false,
|
|
12
12
|
"dark_mode": false,
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"disabled_web_shortcuts": false,
|
|
15
15
|
"hide_on_close": true,
|
|
16
16
|
"incognito": false,
|
|
17
|
-
"title": null
|
|
17
|
+
"title": null,
|
|
18
|
+
"enable_wasm": false
|
|
18
19
|
}
|
|
19
20
|
],
|
|
20
21
|
"user_agent": {
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"productName": "
|
|
3
|
-
"identifier": "com.pake.
|
|
2
|
+
"productName": "GitHubMultiArch",
|
|
3
|
+
"identifier": "com.pake.3097fc",
|
|
4
4
|
"version": "1.0.0",
|
|
5
5
|
"app": {
|
|
6
|
-
"withGlobalTauri": true
|
|
6
|
+
"withGlobalTauri": true,
|
|
7
|
+
"security": {
|
|
8
|
+
"headers": {}
|
|
9
|
+
}
|
|
7
10
|
},
|
|
8
11
|
"build": {
|
|
9
12
|
"frontendDist": "../dist"
|
|
10
13
|
},
|
|
11
14
|
"bundle": {
|
|
12
15
|
"icon": [
|
|
13
|
-
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-
|
|
16
|
+
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-5358-aQ26u2gjnt3X/converted-icons/githubmultiarch.icns"
|
|
14
17
|
],
|
|
15
18
|
"active": true,
|
|
16
|
-
"macOS": {},
|
|
17
19
|
"targets": [
|
|
18
|
-
"
|
|
20
|
+
"app"
|
|
19
21
|
],
|
|
20
22
|
"resources": [
|
|
21
|
-
"icons/
|
|
23
|
+
"icons/githubmultiarch.icns"
|
|
22
24
|
]
|
|
23
25
|
}
|
|
24
26
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bundle": {
|
|
3
3
|
"icon": [
|
|
4
|
-
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-
|
|
4
|
+
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-5358-aQ26u2gjnt3X/converted-icons/githubmultiarch.icns"
|
|
5
5
|
],
|
|
6
6
|
"active": true,
|
|
7
|
-
"macOS": {},
|
|
8
7
|
"targets": [
|
|
9
|
-
"
|
|
8
|
+
"app"
|
|
10
9
|
],
|
|
11
10
|
"resources": [
|
|
12
|
-
"icons/
|
|
11
|
+
"icons/githubmultiarch.icns"
|
|
13
12
|
]
|
|
14
13
|
}
|
|
15
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"pake-capability":{"identifier":"pake-capability","description":"Capability for the pake app.","remote":{"urls":["https://*.*"]},"local":true,"webviews":["pake"],"permissions":["shell:allow-open","core:window:allow-theme","core:window:allow-start-dragging","core:window:allow-toggle-maximize","core:window:allow-is-fullscreen","core:window:allow-set-fullscreen","core:webview:allow-internal-toggle-devtools","notification:allow-is-permission-granted","notification:allow-notify","notification:allow-get-active","notification:allow-register-listener","notification:allow-register-action-types","notification:default"]}}
|
|
1
|
+
{"pake-capability":{"identifier":"pake-capability","description":"Capability for the pake app.","remote":{"urls":["https://*.*"]},"local":true,"webviews":["pake"],"permissions":["shell:allow-open","core:window:allow-theme","core:window:allow-start-dragging","core:window:allow-toggle-maximize","core:window:allow-is-fullscreen","core:window:allow-set-fullscreen","core:webview:allow-internal-toggle-devtools","notification:allow-is-permission-granted","notification:allow-notify","notification:allow-get-active","notification:allow-register-listener","notification:allow-register-action-types","notification:default","core:path:default"]}}
|
|
@@ -46,6 +46,13 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
|
|
|
46
46
|
.initialization_script(include_str!("../inject/style.js"))
|
|
47
47
|
.initialization_script(include_str!("../inject/custom.js"));
|
|
48
48
|
|
|
49
|
+
// Configure WASM support with required headers for SharedArrayBuffer
|
|
50
|
+
if window_config.enable_wasm {
|
|
51
|
+
window_builder = window_builder
|
|
52
|
+
.additional_browser_args("--enable-features=SharedArrayBuffer")
|
|
53
|
+
.additional_browser_args("--enable-unsafe-webgpu");
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
// Configure proxy if specified
|
|
50
57
|
if !config.proxy_url.is_empty() {
|
|
51
58
|
if let Ok(proxy_url) = Url::from_str(&config.proxy_url) {
|