pake-cli 3.7.7 โ 3.8.1
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/dist/cli.js +13 -11
- package/package.json +6 -6
- package/src-tauri/Cargo.lock +216 -232
- package/src-tauri/Cargo.toml +1 -1
- package/src-tauri/gen/schemas/acl-manifests.json +1 -1
- package/src-tauri/gen/schemas/desktop-schema.json +28 -4
- package/src-tauri/gen/schemas/macOS-schema.json +28 -4
- package/src-tauri/pake.json +1 -1
- package/src-tauri/src/app/config.rs +1 -0
- package/src-tauri/src/app/setup.rs +21 -2
- package/src-tauri/src/app/window.rs +4 -4
- package/src-tauri/src/inject/component.js +69 -40
- package/src-tauri/src/lib.rs +31 -5
package/dist/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import * as psl from 'psl';
|
|
|
22
22
|
import { InvalidArgumentError, program as program$1, Option } from 'commander';
|
|
23
23
|
|
|
24
24
|
var name = "pake-cli";
|
|
25
|
-
var version = "3.
|
|
25
|
+
var version = "3.8.1";
|
|
26
26
|
var description = "๐คฑ๐ป Turn any webpage into a desktop app with one command. ๐คฑ๐ป ไธ้ฎๆๅ
็ฝ้กต็ๆ่ฝป้ๆก้ขๅบ็จใ";
|
|
27
27
|
var engines = {
|
|
28
28
|
node: ">=18.0.0"
|
|
@@ -76,7 +76,7 @@ var dependencies = {
|
|
|
76
76
|
chalk: "^5.6.2",
|
|
77
77
|
commander: "^14.0.2",
|
|
78
78
|
execa: "^9.6.1",
|
|
79
|
-
"file-type": "^21.
|
|
79
|
+
"file-type": "^21.3.0",
|
|
80
80
|
"fs-extra": "^11.3.3",
|
|
81
81
|
"icon-gen": "^5.0.0",
|
|
82
82
|
loglevel: "^1.9.2",
|
|
@@ -94,19 +94,19 @@ var devDependencies = {
|
|
|
94
94
|
"@rollup/plugin-replace": "^6.0.3",
|
|
95
95
|
"@rollup/plugin-terser": "^0.4.4",
|
|
96
96
|
"@types/fs-extra": "^11.0.4",
|
|
97
|
-
"@types/node": "^25.0.
|
|
97
|
+
"@types/node": "^25.0.9",
|
|
98
98
|
"@types/page-icon": "^0.3.6",
|
|
99
99
|
"@types/prompts": "^2.4.9",
|
|
100
100
|
"@types/tmp": "^0.2.6",
|
|
101
101
|
"@types/update-notifier": "^6.0.8",
|
|
102
102
|
"app-root-path": "^3.1.0",
|
|
103
103
|
"cross-env": "^10.1.0",
|
|
104
|
-
prettier: "^3.
|
|
105
|
-
rollup: "^4.
|
|
104
|
+
prettier: "^3.8.0",
|
|
105
|
+
rollup: "^4.55.2",
|
|
106
106
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
107
107
|
tslib: "^2.8.1",
|
|
108
108
|
typescript: "^5.9.3",
|
|
109
|
-
vitest: "^4.0.
|
|
109
|
+
vitest: "^4.0.17"
|
|
110
110
|
};
|
|
111
111
|
var pnpm = {
|
|
112
112
|
overrides: {
|
|
@@ -914,7 +914,7 @@ class BaseBuilder {
|
|
|
914
914
|
// Warn users about potential AppImage build failures on modern Linux systems.
|
|
915
915
|
// The linuxdeploy tool bundled in Tauri uses an older strip tool that doesn't
|
|
916
916
|
// recognize the .relr.dyn section introduced in glibc 2.38+.
|
|
917
|
-
if (process.platform === 'linux' &&
|
|
917
|
+
if (process.platform === 'linux' && target === 'appimage') {
|
|
918
918
|
if (!buildEnv.NO_STRIP) {
|
|
919
919
|
logger.warn('โ Building AppImage on Linux may fail due to strip incompatibility with glibc 2.38+');
|
|
920
920
|
logger.warn('โ If build fails, retry with: NO_STRIP=1 pake <url> --targets appimage');
|
|
@@ -927,7 +927,7 @@ class BaseBuilder {
|
|
|
927
927
|
}
|
|
928
928
|
catch (error) {
|
|
929
929
|
const shouldRetryWithoutStrip = process.platform === 'linux' &&
|
|
930
|
-
|
|
930
|
+
target === 'appimage' &&
|
|
931
931
|
!buildEnv.NO_STRIP &&
|
|
932
932
|
this.isLinuxDeployStripError(error);
|
|
933
933
|
if (shouldRetryWithoutStrip) {
|
|
@@ -1291,18 +1291,20 @@ class LinuxBuilder extends BaseBuilder {
|
|
|
1291
1291
|
getFileName() {
|
|
1292
1292
|
const { name = 'pake-app', targets } = this.options;
|
|
1293
1293
|
const version = tauriConfig.version;
|
|
1294
|
+
const buildType = this.currentBuildType || targets.split(',').map((t) => t.trim())[0];
|
|
1294
1295
|
let arch;
|
|
1295
1296
|
if (this.buildArch === 'arm64') {
|
|
1296
|
-
arch =
|
|
1297
|
+
arch =
|
|
1298
|
+
buildType === 'rpm' || buildType === 'appimage' ? 'aarch64' : 'arm64';
|
|
1297
1299
|
}
|
|
1298
1300
|
else {
|
|
1299
1301
|
if (this.buildArch === 'x64') {
|
|
1300
|
-
arch =
|
|
1302
|
+
arch = buildType === 'rpm' ? 'x86_64' : 'amd64';
|
|
1301
1303
|
}
|
|
1302
1304
|
else {
|
|
1303
1305
|
arch = this.buildArch;
|
|
1304
1306
|
if (this.buildArch === 'arm64' &&
|
|
1305
|
-
(
|
|
1307
|
+
(buildType === 'rpm' || buildType === 'appimage')) {
|
|
1306
1308
|
arch = 'aarch64';
|
|
1307
1309
|
}
|
|
1308
1310
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pake-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "๐คฑ๐ป Turn any webpage into a desktop app with one command. ๐คฑ๐ป ไธ้ฎๆๅ
็ฝ้กต็ๆ่ฝป้ๆก้ขๅบ็จใ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"chalk": "^5.6.2",
|
|
55
55
|
"commander": "^14.0.2",
|
|
56
56
|
"execa": "^9.6.1",
|
|
57
|
-
"file-type": "^21.
|
|
57
|
+
"file-type": "^21.3.0",
|
|
58
58
|
"fs-extra": "^11.3.3",
|
|
59
59
|
"icon-gen": "^5.0.0",
|
|
60
60
|
"loglevel": "^1.9.2",
|
|
@@ -72,19 +72,19 @@
|
|
|
72
72
|
"@rollup/plugin-replace": "^6.0.3",
|
|
73
73
|
"@rollup/plugin-terser": "^0.4.4",
|
|
74
74
|
"@types/fs-extra": "^11.0.4",
|
|
75
|
-
"@types/node": "^25.0.
|
|
75
|
+
"@types/node": "^25.0.9",
|
|
76
76
|
"@types/page-icon": "^0.3.6",
|
|
77
77
|
"@types/prompts": "^2.4.9",
|
|
78
78
|
"@types/tmp": "^0.2.6",
|
|
79
79
|
"@types/update-notifier": "^6.0.8",
|
|
80
80
|
"app-root-path": "^3.1.0",
|
|
81
81
|
"cross-env": "^10.1.0",
|
|
82
|
-
"prettier": "^3.
|
|
83
|
-
"rollup": "^4.
|
|
82
|
+
"prettier": "^3.8.0",
|
|
83
|
+
"rollup": "^4.55.2",
|
|
84
84
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
85
85
|
"tslib": "^2.8.1",
|
|
86
86
|
"typescript": "^5.9.3",
|
|
87
|
-
"vitest": "^4.0.
|
|
87
|
+
"vitest": "^4.0.17"
|
|
88
88
|
},
|
|
89
89
|
"pnpm": {
|
|
90
90
|
"overrides": {
|