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 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.7.7";
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.1.1",
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.3",
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.7.4",
105
- rollup: "^4.54.0",
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.16"
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' && this.options.targets === 'appimage') {
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
- this.options.targets === 'appimage' &&
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 = targets === 'rpm' || targets === 'appimage' ? 'aarch64' : 'arm64';
1297
+ arch =
1298
+ buildType === 'rpm' || buildType === 'appimage' ? 'aarch64' : 'arm64';
1297
1299
  }
1298
1300
  else {
1299
1301
  if (this.buildArch === 'x64') {
1300
- arch = targets === 'rpm' ? 'x86_64' : 'amd64';
1302
+ arch = buildType === 'rpm' ? 'x86_64' : 'amd64';
1301
1303
  }
1302
1304
  else {
1303
1305
  arch = this.buildArch;
1304
1306
  if (this.buildArch === 'arm64' &&
1305
- (targets === 'rpm' || targets === 'appimage')) {
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.7.7",
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.1.1",
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.3",
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.7.4",
83
- "rollup": "^4.54.0",
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.16"
87
+ "vitest": "^4.0.17"
88
88
  },
89
89
  "pnpm": {
90
90
  "overrides": {