pake-cli 3.3.0 → 3.3.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/README.md CHANGED
@@ -306,6 +306,15 @@ Pake's development can not be without these Hackers. They contributed a lot of c
306
306
  <sub><b>GoodbyeNJN</b></sub>
307
307
  </a>
308
308
  </td>
309
+ <td align="center">
310
+ <a href="https://github.com/eltociear">
311
+ <img src="https://avatars.githubusercontent.com/u/22633385?v=4" width="90;" alt="eltociear"/>
312
+ <br />
313
+ <sub><b>Ikko Eltociear Ashimine</b></sub>
314
+ </a>
315
+ </td>
316
+ </tr>
317
+ <tr>
309
318
  <td align="center">
310
319
  <a href="https://github.com/kittizz">
311
320
  <img src="https://avatars.githubusercontent.com/u/62899732?v=4" width="90;" alt="kittizz"/>
@@ -313,8 +322,6 @@ Pake's development can not be without these Hackers. They contributed a lot of c
313
322
  <sub><b>Kittizz</b></sub>
314
323
  </a>
315
324
  </td>
316
- </tr>
317
- <tr>
318
325
  <td align="center">
319
326
  <a href="https://github.com/mattbajorek">
320
327
  <img src="https://avatars.githubusercontent.com/u/17235301?v=4" width="90;" alt="mattbajorek"/>
@@ -357,6 +364,8 @@ Pake's development can not be without these Hackers. They contributed a lot of c
357
364
  <sub><b>Yue Yang</b></sub>
358
365
  </a>
359
366
  </td>
367
+ </tr>
368
+ <tr>
360
369
  <td align="center">
361
370
  <a href="https://github.com/lkieryan">
362
371
  <img src="https://avatars.githubusercontent.com/u/187804088?v=4" width="90;" alt="lkieryan"/>
@@ -364,8 +373,6 @@ Pake's development can not be without these Hackers. They contributed a lot of c
364
373
  <sub><b>Kieran</b></sub>
365
374
  </a>
366
375
  </td>
367
- </tr>
368
- <tr>
369
376
  <td align="center">
370
377
  <a href="https://github.com/exposir">
371
378
  <img src="https://avatars.githubusercontent.com/u/33340988?v=4" width="90;" alt="exposir"/>
@@ -408,6 +415,8 @@ Pake's development can not be without these Hackers. They contributed a lot of c
408
415
  <sub><b>Ayaka Neko</b></sub>
409
416
  </a>
410
417
  </td>
418
+ </tr>
419
+ <tr>
411
420
  <td align="center">
412
421
  <a href="https://github.com/turkyden">
413
422
  <img src="https://avatars.githubusercontent.com/u/24560160?v=4" width="90;" alt="turkyden"/>
@@ -415,8 +424,6 @@ Pake's development can not be without these Hackers. They contributed a lot of c
415
424
  <sub><b>Dengju Deng</b></sub>
416
425
  </a>
417
426
  </td>
418
- </tr>
419
- <tr>
420
427
  <td align="center">
421
428
  <a href="https://github.com/fvn-elmy">
422
429
  <img src="https://avatars.githubusercontent.com/u/71275745?v=4" width="90;" alt="fvn-elmy"/>
@@ -459,6 +466,8 @@ Pake's development can not be without these Hackers. They contributed a lot of c
459
466
  <sub><b>Milo</b></sub>
460
467
  </a>
461
468
  </td>
469
+ </tr>
470
+ <tr>
462
471
  <td align="center">
463
472
  <a href="https://github.com/princemaple">
464
473
  <img src="https://avatars.githubusercontent.com/u/1329716?v=4" width="90;" alt="princemaple"/>
@@ -466,8 +475,6 @@ Pake's development can not be without these Hackers. They contributed a lot of c
466
475
  <sub><b>Po Chen</b></sub>
467
476
  </a>
468
477
  </td>
469
- </tr>
470
- <tr>
471
478
  <td align="center">
472
479
  <a href="https://github.com/beautifulrem">
473
480
  <img src="https://avatars.githubusercontent.com/u/98527099?v=4" width="90;" alt="beautifulrem"/>
@@ -510,6 +517,8 @@ Pake's development can not be without these Hackers. They contributed a lot of c
510
517
  <sub><b>Liudonghua</b></sub>
511
518
  </a>
512
519
  </td>
520
+ </tr>
521
+ <tr>
513
522
  <td align="center">
514
523
  <a href="https://github.com/liusishan">
515
524
  <img src="https://avatars.githubusercontent.com/u/33129823?v=4" width="90;" alt="liusishan"/>
@@ -517,8 +526,6 @@ Pake's development can not be without these Hackers. They contributed a lot of c
517
526
  <sub><b>Liusishan</b></sub>
518
527
  </a>
519
528
  </td>
520
- </tr>
521
- <tr>
522
529
  <td align="center">
523
530
  <a href="https://github.com/piaoyidage">
524
531
  <img src="https://avatars.githubusercontent.com/u/5135405?v=4" width="90;" alt="piaoyidage"/>
package/dist/cli.js CHANGED
@@ -22,7 +22,7 @@ import sharp from 'sharp';
22
22
  import * as psl from 'psl';
23
23
 
24
24
  var name = "pake-cli";
25
- var version = "3.3.0";
25
+ var version = "3.3.1";
26
26
  var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
27
27
  var engines = {
28
28
  node: ">=18.0.0"
@@ -85,7 +85,7 @@ var dependencies = {
85
85
  ora: "^8.2.0",
86
86
  prompts: "^2.4.2",
87
87
  psl: "^1.15.0",
88
- sharp: "^0.34.3",
88
+ sharp: "^0.33.4",
89
89
  "tmp-promise": "^3.0.3",
90
90
  "update-notifier": "^7.3.1"
91
91
  };
@@ -1154,7 +1154,7 @@ async function checkUpdateTips() {
1154
1154
  const ICON_CONFIG = {
1155
1155
  minFileSize: 100,
1156
1156
  downloadTimeout: 10000,
1157
- supportedFormats: ['png', 'ico', 'jpeg', 'jpg', 'webp'],
1157
+ supportedFormats: ['png', 'ico', 'jpeg', 'jpg', 'webp', 'icns'],
1158
1158
  whiteBackground: { r: 255, g: 255, b: 255 },
1159
1159
  };
1160
1160
  // API Configuration
@@ -1235,6 +1235,14 @@ async function handleIcon(options, url) {
1235
1235
  if (options.icon.startsWith('http')) {
1236
1236
  const downloadedPath = await downloadIcon(options.icon);
1237
1237
  if (downloadedPath && options.name) {
1238
+ // Check if the downloaded file is already in the correct format for the platform
1239
+ const downloadedExt = path.extname(downloadedPath).toLowerCase();
1240
+ const isCorrectFormat = (IS_WIN && downloadedExt === '.ico') ||
1241
+ (IS_LINUX && downloadedExt === '.png') ||
1242
+ (!IS_WIN && !IS_LINUX && downloadedExt === '.icns'); // macOS
1243
+ if (isCorrectFormat) {
1244
+ return downloadedPath;
1245
+ }
1238
1246
  // Convert downloaded icon to platform-specific format
1239
1247
  const convertedPath = await convertIconFormat(downloadedPath, options.name);
1240
1248
  if (convertedPath) {
@@ -1546,7 +1554,7 @@ program
1546
1554
  .option('--fullscreen', 'Start in full screen', DEFAULT_PAKE_OPTIONS.fullscreen)
1547
1555
  .option('--hide-title-bar', 'For Mac, hide title bar', DEFAULT_PAKE_OPTIONS.hideTitleBar)
1548
1556
  .option('--multi-arch', 'For Mac, both Intel and M1', DEFAULT_PAKE_OPTIONS.multiArch)
1549
- .option('--inject <./style.css,./script.js,...>', 'Injection of .js or .css files', (val, previous) => {
1557
+ .option('--inject <files>', 'Inject local CSS/JS files into the page', (val, previous) => {
1550
1558
  if (!val)
1551
1559
  return DEFAULT_PAKE_OPTIONS.inject;
1552
1560
  // Split by comma and trim whitespace, filter out empty strings
@@ -1564,7 +1572,7 @@ program
1564
1572
  .addOption(new Option('--user-agent <string>', 'Custom user agent')
1565
1573
  .default(DEFAULT_PAKE_OPTIONS.userAgent)
1566
1574
  .hideHelp())
1567
- .addOption(new Option('--targets <string>', 'Build target: Linux: "deb", "rpm", "appimage", "deb-arm64", "rpm-arm64", "appimage-arm64"; Windows: "x64", "arm64"; macOS: "intel", "apple", "universal"').default(DEFAULT_PAKE_OPTIONS.targets))
1575
+ .addOption(new Option('--targets <string>', 'Build target format for your system').default(DEFAULT_PAKE_OPTIONS.targets))
1568
1576
  .addOption(new Option('--app-version <string>', 'App version, the same as package.json version')
1569
1577
  .default(DEFAULT_PAKE_OPTIONS.appVersion)
1570
1578
  .hideHelp())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -63,7 +63,7 @@
63
63
  "ora": "^8.2.0",
64
64
  "prompts": "^2.4.2",
65
65
  "psl": "^1.15.0",
66
- "sharp": "^0.34.3",
66
+ "sharp": "^0.33.4",
67
67
  "tmp-promise": "^3.0.3",
68
68
  "update-notifier": "^7.3.1"
69
69
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "windows": [
3
3
  {
4
- "url": "https://web-serial-example.netlify.app/",
4
+ "url": "https://weekly.tw93.fun",
5
5
  "url_type": "web",
6
6
  "hide_title_bar": false,
7
7
  "fullscreen": false,
@@ -16,7 +16,6 @@
16
16
  "incognito": false,
17
17
  "enable_wasm": false,
18
18
  "enable_drag_drop": false,
19
- "enable_serial": true,
20
19
  "title": null
21
20
  }
22
21
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
- "productName": "SerialTerminal",
3
- "identifier": "com.pake.76e98c",
2
+ "productName": "WeeklyIconFixed",
3
+ "identifier": "com.pake.33f03a",
4
4
  "version": "1.0.0",
5
5
  "app": {
6
6
  "withGlobalTauri": true,
@@ -13,14 +13,14 @@
13
13
  },
14
14
  "bundle": {
15
15
  "icon": [
16
- "icons/serialterminal.icns"
16
+ "icons/weeklyiconfixed.icns"
17
17
  ],
18
18
  "active": true,
19
19
  "targets": [
20
- "dmg"
20
+ "app"
21
21
  ],
22
22
  "resources": [
23
- "icons/serialterminal.icns"
23
+ "icons/weeklyiconfixed.icns"
24
24
  ]
25
25
  }
26
26
  }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "bundle": {
3
3
  "icon": [
4
- "icons/serialterminal.icns"
4
+ "icons/weeklyiconfixed.icns"
5
5
  ],
6
6
  "active": true,
7
7
  "targets": [
8
- "dmg"
8
+ "app"
9
9
  ],
10
10
  "resources": [
11
- "icons/serialterminal.icns"
11
+ "icons/weeklyiconfixed.icns"
12
12
  ]
13
13
  }
14
14
  }