pake-cli 3.2.16 → 3.2.18
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 +32 -21
- package/dist/cli.js +221 -182
- package/package.json +16 -13
- package/src-tauri/.cargo/config.toml +0 -11
- package/src-tauri/.pake/pake.json +6 -2
- package/src-tauri/.pake/tauri.conf.json +8 -6
- package/src-tauri/.pake/tauri.macos.conf.json +2 -3
- package/src-tauri/Cargo.lock +267 -362
- package/src-tauri/Cargo.toml +6 -6
- package/src-tauri/gen/schemas/capabilities.json +1 -1
- package/src-tauri/pake.json +3 -1
- package/src-tauri/src/app/config.rs +2 -0
- package/src-tauri/src/app/window.rs +15 -2
- package/src-tauri/src/lib.rs +11 -2
- package/src-tauri/tauri.conf.json +3 -0
- package/src-tauri/gen/schemas/windows-schema.json +0 -2326
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pake-cli",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.18",
|
|
4
4
|
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": ">=
|
|
6
|
+
"node": ">=18.0.0"
|
|
7
7
|
},
|
|
8
|
+
"packageManager": "pnpm@10.15.0",
|
|
8
9
|
"bin": {
|
|
9
10
|
"pake": "./dist/cli.js"
|
|
10
11
|
},
|
|
@@ -29,29 +30,31 @@
|
|
|
29
30
|
"src-tauri"
|
|
30
31
|
],
|
|
31
32
|
"scripts": {
|
|
32
|
-
"start": "
|
|
33
|
-
"dev": "
|
|
34
|
-
"build": "
|
|
35
|
-
"build:debug": "
|
|
36
|
-
"build:mac": "
|
|
33
|
+
"start": "pnpm run dev",
|
|
34
|
+
"dev": "pnpm run tauri dev",
|
|
35
|
+
"build": "tauri build",
|
|
36
|
+
"build:debug": "tauri build --debug",
|
|
37
|
+
"build:mac": "tauri build --target universal-apple-darwin",
|
|
37
38
|
"build:config": "chmod +x scripts/configure-tauri.mjs && node scripts/configure-tauri.mjs",
|
|
38
39
|
"analyze": "cd src-tauri && cargo bloat --release --crates",
|
|
39
40
|
"tauri": "tauri",
|
|
40
41
|
"cli": "cross-env NODE_ENV=development rollup -c -w",
|
|
41
42
|
"cli:build": "cross-env NODE_ENV=production rollup -c",
|
|
42
|
-
"test": "
|
|
43
|
+
"test": "pnpm run cli:build && cross-env PAKE_CREATE_APP=1 node tests/index.js",
|
|
43
44
|
"format": "prettier --write . --ignore-unknown && find tests -name '*.js' -exec sed -i '' 's/[[:space:]]*$//' {} \\; && cd src-tauri && cargo fmt --verbose",
|
|
44
|
-
"
|
|
45
|
+
"format:check": "prettier --check . --ignore-unknown",
|
|
46
|
+
"update": "pnpm update --verbose && cd src-tauri && cargo update",
|
|
47
|
+
"prepublishOnly": "pnpm run cli:build"
|
|
45
48
|
},
|
|
46
49
|
"type": "module",
|
|
47
50
|
"exports": "./dist/cli.js",
|
|
48
51
|
"license": "MIT",
|
|
49
52
|
"dependencies": {
|
|
50
53
|
"@tauri-apps/api": "^2.8.0",
|
|
51
|
-
"@tauri-apps/cli": "^2.8.
|
|
54
|
+
"@tauri-apps/cli": "^2.8.3",
|
|
52
55
|
"axios": "^1.11.0",
|
|
53
56
|
"chalk": "^5.6.0",
|
|
54
|
-
"commander": "^
|
|
57
|
+
"commander": "^12.1.0",
|
|
55
58
|
"execa": "^9.6.0",
|
|
56
59
|
"file-type": "^18.7.0",
|
|
57
60
|
"fs-extra": "^11.3.1",
|
|
@@ -60,7 +63,7 @@
|
|
|
60
63
|
"ora": "^8.2.0",
|
|
61
64
|
"prompts": "^2.4.2",
|
|
62
65
|
"psl": "^1.15.0",
|
|
63
|
-
"sharp": "^0.
|
|
66
|
+
"sharp": "^0.34.3",
|
|
64
67
|
"tmp-promise": "^3.0.3",
|
|
65
68
|
"update-notifier": "^7.3.1"
|
|
66
69
|
},
|
|
@@ -79,7 +82,7 @@
|
|
|
79
82
|
"app-root-path": "^3.1.0",
|
|
80
83
|
"cross-env": "^7.0.3",
|
|
81
84
|
"prettier": "^3.6.2",
|
|
82
|
-
"rollup": "^4.
|
|
85
|
+
"rollup": "^4.49.0",
|
|
83
86
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
84
87
|
"tslib": "^2.8.1",
|
|
85
88
|
"typescript": "^5.9.2"
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
[source.crates-io]
|
|
2
|
-
replace-with = 'rsproxy-sparse'
|
|
3
|
-
[source.rsproxy]
|
|
4
|
-
registry = "https://rsproxy.cn/crates.io-index"
|
|
5
|
-
[source.rsproxy-sparse]
|
|
6
|
-
registry = "sparse+https://rsproxy.cn/index/"
|
|
7
|
-
[registries.rsproxy]
|
|
8
|
-
index = "https://rsproxy.cn/crates.io-index"
|
|
9
|
-
[net]
|
|
10
|
-
git-fetch-with-cli = true
|
|
11
|
-
|
|
12
1
|
[env]
|
|
13
2
|
# Fix for macOS 26 Beta compatibility issues
|
|
14
3
|
# Forces use of compatible SDK when building on macOS 26 Beta
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"windows": [
|
|
3
3
|
{
|
|
4
|
-
"url": "https://
|
|
4
|
+
"url": "https://example.com",
|
|
5
5
|
"url_type": "web",
|
|
6
6
|
"hide_title_bar": false,
|
|
7
7
|
"fullscreen": false,
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
"disabled_web_shortcuts": false,
|
|
15
15
|
"hide_on_close": true,
|
|
16
16
|
"incognito": false,
|
|
17
|
+
"enable_wasm": false,
|
|
18
|
+
"enable_drag_drop": false,
|
|
17
19
|
"title": null
|
|
18
20
|
}
|
|
19
21
|
],
|
|
@@ -28,6 +30,8 @@
|
|
|
28
30
|
"windows": true
|
|
29
31
|
},
|
|
30
32
|
"system_tray_path": "png/icon_512.png",
|
|
31
|
-
"inject": [
|
|
33
|
+
"inject": [
|
|
34
|
+
"/tmp/test.css"
|
|
35
|
+
],
|
|
32
36
|
"proxy_url": ""
|
|
33
37
|
}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"productName": "
|
|
3
|
-
"identifier": "com.pake.
|
|
2
|
+
"productName": "TestInjectFix",
|
|
3
|
+
"identifier": "com.pake.c984d0",
|
|
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-93786-OSC4Bs2UNKIN/converted-icons/testinjectfix.icns"
|
|
14
17
|
],
|
|
15
18
|
"active": true,
|
|
16
|
-
"macOS": {},
|
|
17
19
|
"targets": [
|
|
18
20
|
"dmg"
|
|
19
21
|
],
|
|
20
22
|
"resources": [
|
|
21
|
-
"icons/
|
|
23
|
+
"icons/testinjectfix.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-93786-OSC4Bs2UNKIN/converted-icons/testinjectfix.icns"
|
|
5
5
|
],
|
|
6
6
|
"active": true,
|
|
7
|
-
"macOS": {},
|
|
8
7
|
"targets": [
|
|
9
8
|
"dmg"
|
|
10
9
|
],
|
|
11
10
|
"resources": [
|
|
12
|
-
"icons/
|
|
11
|
+
"icons/testinjectfix.icns"
|
|
13
12
|
]
|
|
14
13
|
}
|
|
15
14
|
}
|