pake-cli 3.4.2 โ†’ 3.5.0

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 CHANGED
@@ -156,17 +156,17 @@ In addition, double-click the title bar to switch to full-screen mode. For Mac u
156
156
 
157
157
  ## Command-Line Packaging
158
158
 
159
- ![Pake](https://raw.githubusercontent.com/tw93/static/main/pake/pake.gif)
159
+ ![Pake](https://raw.githubusercontent.com/tw93/static/main/pake/pake1.gif)
160
160
 
161
161
  ```bash
162
- # Install
162
+ # Install Pake CLI
163
163
  pnpm install -g pake-cli
164
164
 
165
- # Basic usage (auto-fetch website icon)
166
- pake https://weekly.tw93.fun --name Weekly
165
+ # Basic usage - automatically fetches website icon
166
+ pake https://github.com --name GitHub
167
167
 
168
- # Common options: --name app name, --icon custom icon, --width/--height window size, --hide-title-bar macOS immersive
169
- pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --hide-title-bar
168
+ # Advanced usage with custom options
169
+ pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar
170
170
  ```
171
171
 
172
172
  First-time packaging requires environment setup and may be slower, subsequent builds are fast. For complete parameter documentation, see [CLI Usage Guide](docs/cli-usage.md). Don't want to use CLI? Try [GitHub Actions Online Building](docs/github-actions-usage.md).
package/dist/cli.js CHANGED
@@ -23,7 +23,7 @@ import sharp from 'sharp';
23
23
  import * as psl from 'psl';
24
24
 
25
25
  var name = "pake-cli";
26
- var version = "3.4.2";
26
+ var version = "3.5.0";
27
27
  var description = "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with one command. ๐Ÿคฑ๐Ÿป ไธ€้”ฎๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆ่ฝป้‡ๆกŒ้ขๅบ”็”จใ€‚";
28
28
  var engines = {
29
29
  node: ">=18.0.0"
@@ -73,8 +73,8 @@ var type = "module";
73
73
  var exports = "./dist/cli.js";
74
74
  var license = "MIT";
75
75
  var dependencies = {
76
- "@tauri-apps/api": "^2.8.0",
77
- "@tauri-apps/cli": "^2.8.4",
76
+ "@tauri-apps/api": "^2.9.0",
77
+ "@tauri-apps/cli": "^2.9.0",
78
78
  axios: "^1.12.2",
79
79
  chalk: "^5.6.2",
80
80
  commander: "^12.1.0",
@@ -92,12 +92,12 @@ var dependencies = {
92
92
  };
93
93
  var devDependencies = {
94
94
  "@rollup/plugin-alias": "^5.1.1",
95
- "@rollup/plugin-commonjs": "^28.0.6",
95
+ "@rollup/plugin-commonjs": "^28.0.8",
96
96
  "@rollup/plugin-json": "^6.1.0",
97
97
  "@rollup/plugin-replace": "^6.0.2",
98
98
  "@rollup/plugin-terser": "^0.4.4",
99
99
  "@types/fs-extra": "^11.0.4",
100
- "@types/node": "^20.19.21",
100
+ "@types/node": "^20.19.23",
101
101
  "@types/page-icon": "^0.3.6",
102
102
  "@types/prompts": "^2.4.9",
103
103
  "@types/tmp": "^0.2.6",
@@ -105,7 +105,7 @@ var devDependencies = {
105
105
  "app-root-path": "^3.1.0",
106
106
  "cross-env": "^7.0.3",
107
107
  prettier: "^3.6.2",
108
- rollup: "^4.52.4",
108
+ rollup: "^4.52.5",
109
109
  "rollup-plugin-typescript2": "^0.36.0",
110
110
  tslib: "^2.8.1",
111
111
  typescript: "^5.9.3"
@@ -470,7 +470,7 @@ async function mergeConfig(url, options, tauriConf) {
470
470
  await fsExtra.copy(sourcePath, destPath);
471
471
  }
472
472
  }));
473
- const { width, height, fullscreen, maximize, hideTitleBar, alwaysOnTop, appVersion, darkMode, disabledWebShortcuts, activationShortcut, userAgent, showSystemTray, systemTrayIcon, useLocalFile, identifier, name, resizable = true, inject, proxyUrl, installerLanguage, hideOnClose, incognito, title, wasm, enableDragDrop, multiInstance, startToTray, } = options;
473
+ const { width, height, fullscreen, maximize, hideTitleBar, alwaysOnTop, appVersion, darkMode, disabledWebShortcuts, activationShortcut, userAgent, showSystemTray, systemTrayIcon, useLocalFile, identifier, name, resizable = true, inject, proxyUrl, installerLanguage, hideOnClose, incognito, title, wasm, enableDragDrop, multiInstance, startToTray, forceInternalNavigation, } = options;
474
474
  const { platform } = process;
475
475
  const platformHideOnClose = hideOnClose ?? platform === 'darwin';
476
476
  const tauriConfWindowOptions = {
@@ -490,6 +490,7 @@ async function mergeConfig(url, options, tauriConf) {
490
490
  enable_wasm: wasm,
491
491
  enable_drag_drop: enableDragDrop,
492
492
  start_to_tray: startToTray && showSystemTray,
493
+ force_internal_navigation: forceInternalNavigation,
493
494
  };
494
495
  Object.assign(tauriConf.pake.windows[0], { url, ...tauriConfWindowOptions });
495
496
  tauriConf.productName = name;
@@ -1331,6 +1332,7 @@ const DEFAULT_PAKE_OPTIONS = {
1331
1332
  keepBinary: false,
1332
1333
  multiInstance: false,
1333
1334
  startToTray: false,
1335
+ forceInternalNavigation: false,
1334
1336
  };
1335
1337
 
1336
1338
  async function checkUpdateTips() {
@@ -1862,6 +1864,9 @@ program
1862
1864
  .addOption(new Option('--start-to-tray', 'Start app minimized to tray')
1863
1865
  .default(DEFAULT_PAKE_OPTIONS.startToTray)
1864
1866
  .hideHelp())
1867
+ .addOption(new Option('--force-internal-navigation', 'Keep every link inside the Pake window instead of opening external handlers')
1868
+ .default(DEFAULT_PAKE_OPTIONS.forceInternalNavigation)
1869
+ .hideHelp())
1865
1870
  .addOption(new Option('--installer-language <string>', 'Installer language')
1866
1871
  .default(DEFAULT_PAKE_OPTIONS.installerLanguage)
1867
1872
  .hideHelp())
@@ -1888,6 +1893,7 @@ program
1888
1893
  return;
1889
1894
  }
1890
1895
  log.setDefaultLevel('info');
1896
+ log.setLevel('info');
1891
1897
  if (options.debug) {
1892
1898
  log.setLevel('debug');
1893
1899
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "3.4.2",
3
+ "version": "3.5.0",
4
4
  "description": "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with one command. ๐Ÿคฑ๐Ÿป ไธ€้”ฎๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆ่ฝป้‡ๆกŒ้ขๅบ”็”จใ€‚",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -50,8 +50,8 @@
50
50
  "exports": "./dist/cli.js",
51
51
  "license": "MIT",
52
52
  "dependencies": {
53
- "@tauri-apps/api": "^2.8.0",
54
- "@tauri-apps/cli": "^2.8.4",
53
+ "@tauri-apps/api": "^2.9.0",
54
+ "@tauri-apps/cli": "^2.9.0",
55
55
  "axios": "^1.12.2",
56
56
  "chalk": "^5.6.2",
57
57
  "commander": "^12.1.0",
@@ -69,12 +69,12 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@rollup/plugin-alias": "^5.1.1",
72
- "@rollup/plugin-commonjs": "^28.0.6",
72
+ "@rollup/plugin-commonjs": "^28.0.8",
73
73
  "@rollup/plugin-json": "^6.1.0",
74
74
  "@rollup/plugin-replace": "^6.0.2",
75
75
  "@rollup/plugin-terser": "^0.4.4",
76
76
  "@types/fs-extra": "^11.0.4",
77
- "@types/node": "^20.19.21",
77
+ "@types/node": "^20.19.23",
78
78
  "@types/page-icon": "^0.3.6",
79
79
  "@types/prompts": "^2.4.9",
80
80
  "@types/tmp": "^0.2.6",
@@ -82,7 +82,7 @@
82
82
  "app-root-path": "^3.1.0",
83
83
  "cross-env": "^7.0.3",
84
84
  "prettier": "^3.6.2",
85
- "rollup": "^4.52.4",
85
+ "rollup": "^4.52.5",
86
86
  "rollup-plugin-typescript2": "^0.36.0",
87
87
  "tslib": "^2.8.1",
88
88
  "typescript": "^5.9.3"