pake-cli 3.1.1 → 3.2.0-beta

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.
Files changed (82) hide show
  1. package/README.md +82 -25
  2. package/dist/cli.js +145 -81
  3. package/dist/dev.js +39 -20
  4. package/dist/dev.js.map +1 -1
  5. package/package.json +15 -17
  6. package/src-tauri/.cargo/config.toml +5 -0
  7. package/src-tauri/Cargo.lock +1337 -1111
  8. package/src-tauri/Cargo.toml +12 -12
  9. package/src-tauri/assets/{com-tw93-weread.desktop → com-tw93-weekly.desktop} +4 -4
  10. package/src-tauri/gen/schemas/acl-manifests.json +1 -1
  11. package/src-tauri/gen/schemas/desktop-schema.json +906 -421
  12. package/src-tauri/gen/schemas/macOS-schema.json +906 -421
  13. package/src-tauri/icons/deepseek.icns +0 -0
  14. package/src-tauri/icons/grok.icns +0 -0
  15. package/src-tauri/icons/weekly.icns +0 -0
  16. package/src-tauri/pake.json +3 -2
  17. package/src-tauri/png/chatgpt_256.ico +0 -0
  18. package/src-tauri/png/chatgpt_32.ico +0 -0
  19. package/src-tauri/png/chatgpt_512.png +0 -0
  20. package/src-tauri/png/deepseek_256.ico +0 -0
  21. package/src-tauri/png/deepseek_32.ico +0 -0
  22. package/src-tauri/png/deepseek_512.png +0 -0
  23. package/src-tauri/png/excalidraw_256.ico +0 -0
  24. package/src-tauri/png/excalidraw_32.ico +0 -0
  25. package/src-tauri/png/excalidraw_512.png +0 -0
  26. package/src-tauri/png/flomo_256.ico +0 -0
  27. package/src-tauri/png/flomo_32.ico +0 -0
  28. package/src-tauri/png/flomo_512.png +0 -0
  29. package/src-tauri/png/gemini_256.ico +0 -0
  30. package/src-tauri/png/gemini_32.ico +0 -0
  31. package/src-tauri/png/gemini_512.png +0 -0
  32. package/src-tauri/png/grok_256.ico +0 -0
  33. package/src-tauri/png/grok_32.ico +0 -0
  34. package/src-tauri/png/grok_512.png +0 -0
  35. package/src-tauri/png/icon_256.ico +0 -0
  36. package/src-tauri/png/icon_32.ico +0 -0
  37. package/src-tauri/png/icon_512.png +0 -0
  38. package/src-tauri/png/lizhi_256.ico +0 -0
  39. package/src-tauri/png/lizhi_32.ico +0 -0
  40. package/src-tauri/png/lizhi_512.png +0 -0
  41. package/src-tauri/png/programmusic_256.ico +0 -0
  42. package/src-tauri/png/programmusic_32.ico +0 -0
  43. package/src-tauri/png/programmusic_512.png +0 -0
  44. package/src-tauri/png/qwerty_256.ico +0 -0
  45. package/src-tauri/png/qwerty_32.ico +0 -0
  46. package/src-tauri/png/qwerty_512.png +0 -0
  47. package/src-tauri/png/twitter_256.ico +0 -0
  48. package/src-tauri/png/twitter_32.ico +0 -0
  49. package/src-tauri/png/twitter_512.png +0 -0
  50. package/src-tauri/png/wechat_256.ico +0 -0
  51. package/src-tauri/png/wechat_32.ico +0 -0
  52. package/src-tauri/png/wechat_512.png +0 -0
  53. package/src-tauri/png/weekly_256.ico +0 -0
  54. package/src-tauri/png/weekly_32.ico +0 -0
  55. package/src-tauri/png/weekly_512.png +0 -0
  56. package/src-tauri/png/weread_256.ico +0 -0
  57. package/src-tauri/png/weread_32.ico +0 -0
  58. package/src-tauri/png/weread_512.png +0 -0
  59. package/src-tauri/png/xiaohongshu_256.ico +0 -0
  60. package/src-tauri/png/xiaohongshu_32.ico +0 -0
  61. package/src-tauri/png/xiaohongshu_512.png +0 -0
  62. package/src-tauri/png/youtube_256.ico +0 -0
  63. package/src-tauri/png/youtube_32.ico +0 -0
  64. package/src-tauri/png/youtube_512.png +0 -0
  65. package/src-tauri/png/youtubemusic_256.ico +0 -0
  66. package/src-tauri/png/youtubemusic_32.ico +0 -0
  67. package/src-tauri/png/youtubemusic_512.png +0 -0
  68. package/src-tauri/src/app/config.rs +1 -0
  69. package/src-tauri/src/app/setup.rs +3 -1
  70. package/src-tauri/src/app/window.rs +25 -3
  71. package/src-tauri/src/inject/component.js +6 -5
  72. package/src-tauri/src/inject/event.js +143 -62
  73. package/src-tauri/src/inject/style.js +29 -8
  74. package/src-tauri/src/lib.rs +18 -12
  75. package/src-tauri/src/util.rs +4 -4
  76. package/src-tauri/tauri.conf.json +3 -3
  77. package/src-tauri/tauri.linux.conf.json +4 -2
  78. package/src-tauri/tauri.macos.conf.json +1 -1
  79. package/src-tauri/tauri.windows.conf.json +2 -2
  80. package/src-tauri/.pake/pake.json +0 -30
  81. package/src-tauri/.pake/tauri.conf.json +0 -24
  82. package/src-tauri/.pake/tauri.macos.conf.json +0 -15
package/README.md CHANGED
@@ -47,21 +47,37 @@
47
47
  <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/WeRead.jpg width=600/></td>
48
48
  <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Twitter.jpg width=600/></td>
49
49
  </tr>
50
+ <tr>
51
+ <td>Grok
52
+ <a href="https://github.com/tw93/Pake/releases/latest/download/Grok.dmg">Mac</a>
53
+ <a href="https://github.com/tw93/Pake/releases/latest/download/Grok_x64.msi">Windows</a>
54
+ <a href="https://github.com/tw93/Pake/releases/latest/download/Grok_x86_64.deb">Linux</a>
55
+ </td>
56
+ <td>DeepSeek
57
+ <a href="https://github.com/tw93/Pake/releases/latest/download/DeepSeek.dmg">Mac</a>
58
+ <a href="https://github.com/tw93/Pake/releases/latest/download/DeepSeek_x64.msi">Windows</a>
59
+ <a href="https://github.com/tw93/Pake/releases/latest/download/DeepSeek_x86_64.deb">Linux</a>
60
+ </td>
61
+ </tr>
62
+ <tr>
63
+ <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Grok.png width=600/></td>
64
+ <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/DeepSeek.png width=600/></td>
65
+ </tr>
50
66
  <tr>
51
67
  <td>ChatGPT
52
68
  <a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT.dmg">Mac</a>
53
69
  <a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x64.msi">Windows</a>
54
70
  <a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x86_64.deb">Linux</a>
55
71
  </td>
56
- <td>Qwerty
57
- <a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty.dmg">Mac</a>
58
- <a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x64.msi">Windows</a>
59
- <a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x86_64.deb">Linux</a>
72
+ <td>Gemini
73
+ <a href="https://github.com/tw93/Pake/releases/latest/download/Gemini.dmg">Mac</a>
74
+ <a href="https://github.com/tw93/Pake/releases/latest/download/Gemini_x64.msi">Windows</a>
75
+ <a href="https://github.com/tw93/Pake/releases/latest/download/Gemini_x86_64.deb">Linux</a>
60
76
  </td>
61
77
  </tr>
62
78
  <tr>
63
79
  <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/ChatGPT.png width=600/></td>
64
- <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Qwerty.png width=600/></td>
80
+ <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Gemini.png width=600/></td>
65
81
  </tr>
66
82
  <tr>
67
83
  <td>YouTube Music
@@ -96,10 +112,10 @@
96
112
  <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/ProgramMusic.jpg width=600/></td>
97
113
  </tr>
98
114
  <tr>
99
- <td>Flomo
100
- <a href="https://github.com/tw93/Pake/releases/latest/download/Flomo.dmg">Mac</a>
101
- <a href="https://github.com/tw93/Pake/releases/latest/download/Flomo_x64.msi">Windows</a>
102
- <a href="https://github.com/tw93/Pake/releases/latest/download/Flomo_x86_64.deb">Linux</a>
115
+ <td>Excalidraw
116
+ <a href="https://github.com/tw93/Pake/releases/latest/download/Excalidraw.dmg">Mac</a>
117
+ <a href="https://github.com/tw93/Pake/releases/latest/download/Excalidraw_x64.msi">Windows</a>
118
+ <a href="https://github.com/tw93/Pake/releases/latest/download/Excalidraw_x86_64.deb">Linux</a>
103
119
  </td>
104
120
  <td>XiaoHongShu
105
121
  <a href="https://github.com/tw93/Pake/releases/latest/download/XiaoHongShu.dmg">Mac</a>
@@ -108,7 +124,7 @@
108
124
  </td>
109
125
  </tr>
110
126
  <tr>
111
- <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Flomo.png width=600/></td>
127
+ <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Excalidraw.png width=600/></td>
112
128
  <td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/XiaoHongShu.png width=600/></td>
113
129
  </tr>
114
130
  </table>
@@ -156,14 +172,13 @@ pake url [OPTIONS]...
156
172
 
157
173
  # Feel free to play with Pake! It might take a while to prepare the environment the first time you launch Pake.
158
174
  pake https://weekly.tw93.fun --name Weekly --hide-title-bar
159
-
160
175
  ```
161
176
 
162
177
  If you are new to the command line, you can compile packages online with _GitHub Actions_. See the [Tutorial](<https://github.com/tw93/Pake/wiki/Online-Compilation-(used-by-ordinary-users)>) for more information.
163
178
 
164
179
  ## Development
165
180
 
166
- Prepare your environment before starting. Make sure you have Rust `>=1.63` and Node `>=16` (e.g., `16.18.1`) installed on your computer. For installation guidance, see [Tauri documentation](https://tauri.app/start/prerequisites/).
181
+ Prepare your environment before starting. Make sure you have Rust `>=1.89` and Node `>=22` (e.g., `22.11.0`) installed on your computer. _Note: Older versions (Rust ≥1.78, Node ≥16) may also work but latest stable versions are recommended._ For installation guidance, see [Tauri documentation](https://tauri.app/start/prerequisites/).
167
182
 
168
183
  If you are unfamiliar with these, it is better to try out the above tool to pack with one click.
169
184
 
@@ -182,7 +197,7 @@ npm run build
182
197
 
183
198
  1. You can refer to the [codebase structure](https://github.com/tw93/Pake/wiki/Description-of-Pake's-code-structure) before working on Pake, which will help you much in development.
184
199
  2. Modify the `url` and `productName` fields in the `pake.json` file under the src-tauri directory, the "domain" field in the `tauri.config.json` file needs to be modified synchronously, as well as the `icon` and `identifier` fields in the `tauri.xxx.conf.json` file. You can select an `icon` from the `icons` directory or download one from [macOSicons](https://macosicons.com/#/) to match your product needs.
185
- 3. For configurations on window properties, you can modify the `pake.json` file to change the value of `width`, `height`, `fullscreen` (or not), `resizable` (or not) of the `windows` property. To adapt to the immersive header on Mac, change `hideTitleBar` to `true`, look for the `Header` element, and add the `padding-top` property.
200
+ 3. For configurations on window properties, you can modify the `pake.json` file to change the value of `width`, `height`, `fullscreen` (or not), `resizable` (or not), `hide_on_close` (hide window on close instead of exiting) of the `windows` property. To adapt to the immersive header on Mac, change `hideTitleBar` to `true`, look for the `Header` element, and add the `padding-top` property.
186
201
  4. For advanced usages such as style rewriting, advertisement removal, JS injection, container message communication, and user-defined shortcut keys, see [Advanced Usage of Pake](https://github.com/tw93/Pake/wiki/Advanced-Usage-of-Pake).
187
202
 
188
203
  ## Developers
@@ -278,20 +293,34 @@ Pake's development can not be without these Hackers. They contributed a lot of c
278
293
  </a>
279
294
  </td>
280
295
  <td align="center">
281
- <a href="https://github.com/eltociear">
282
- <img src="https://avatars.githubusercontent.com/u/22633385?v=4" width="90;" alt="eltociear"/>
296
+ <a href="https://github.com/GoodbyeNJN">
297
+ <img src="https://avatars.githubusercontent.com/u/6856639?v=4" width="90;" alt="GoodbyeNJN"/>
283
298
  <br />
284
- <sub><b>Ikko Eltociear Ashimine</b></sub>
299
+ <sub><b>GoodbyeNJN</b></sub>
285
300
  </a>
286
301
  </td>
302
+ <td align="center">
303
+ <a href="https://github.com/kittizz">
304
+ <img src="https://avatars.githubusercontent.com/u/62899732?v=4" width="90;" alt="kittizz"/>
305
+ <br />
306
+ <sub><b>Kittizz</b></sub>
307
+ </a>
308
+ </td></tr>
309
+ <tr>
287
310
  <td align="center">
288
311
  <a href="https://github.com/mattbajorek">
289
312
  <img src="https://avatars.githubusercontent.com/u/17235301?v=4" width="90;" alt="mattbajorek"/>
290
313
  <br />
291
314
  <sub><b>Matt Bajorek</b></sub>
292
315
  </a>
293
- </td></tr>
294
- <tr>
316
+ </td>
317
+ <td align="center">
318
+ <a href="https://github.com/vaddisrinivas">
319
+ <img src="https://avatars.githubusercontent.com/u/38348871?v=4" width="90;" alt="vaddisrinivas"/>
320
+ <br />
321
+ <sub><b>Srinivas Vaddi</b></sub>
322
+ </a>
323
+ </td>
295
324
  <td align="center">
296
325
  <a href="https://github.com/QingZ11">
297
326
  <img src="https://avatars.githubusercontent.com/u/38887077?v=4" width="90;" alt="QingZ11"/>
@@ -313,6 +342,21 @@ Pake's development can not be without these Hackers. They contributed a lot of c
313
342
  <sub><b>Yi Xin</b></sub>
314
343
  </a>
315
344
  </td>
345
+ <td align="center">
346
+ <a href="https://github.com/g1eny0ung">
347
+ <img src="https://avatars.githubusercontent.com/u/15034155?v=4" width="90;" alt="g1eny0ung"/>
348
+ <br />
349
+ <sub><b>Yue Yang</b></sub>
350
+ </a>
351
+ </td>
352
+ <td align="center">
353
+ <a href="https://github.com/lkieryan">
354
+ <img src="https://avatars.githubusercontent.com/u/187804088?v=4" width="90;" alt="lkieryan"/>
355
+ <br />
356
+ <sub><b>Kieran</b></sub>
357
+ </a>
358
+ </td></tr>
359
+ <tr>
316
360
  <td align="center">
317
361
  <a href="https://github.com/exposir">
318
362
  <img src="https://avatars.githubusercontent.com/u/33340988?v=4" width="90;" alt="exposir"/>
@@ -340,8 +384,7 @@ Pake's development can not be without these Hackers. They contributed a lot of c
340
384
  <br />
341
385
  <sub><b>Abu Taher Siddik</b></sub>
342
386
  </a>
343
- </td></tr>
344
- <tr>
387
+ </td>
345
388
  <td align="center">
346
389
  <a href="https://github.com/kidylee">
347
390
  <img src="https://avatars.githubusercontent.com/u/841310?v=4" width="90;" alt="kidylee"/>
@@ -362,7 +405,8 @@ Pake's development can not be without these Hackers. They contributed a lot of c
362
405
  <br />
363
406
  <sub><b>Dengju Deng</b></sub>
364
407
  </a>
365
- </td>
408
+ </td></tr>
409
+ <tr>
366
410
  <td align="center">
367
411
  <a href="https://github.com/Fechin">
368
412
  <img src="https://avatars.githubusercontent.com/u/2541482?v=4" width="90;" alt="Fechin"/>
@@ -390,8 +434,7 @@ Pake's development can not be without these Hackers. They contributed a lot of c
390
434
  <br />
391
435
  <sub><b>Milo</b></sub>
392
436
  </a>
393
- </td></tr>
394
- <tr>
437
+ </td>
395
438
  <td align="center">
396
439
  <a href="https://github.com/princemaple">
397
440
  <img src="https://avatars.githubusercontent.com/u/1329716?v=4" width="90;" alt="princemaple"/>
@@ -399,6 +442,21 @@ Pake's development can not be without these Hackers. They contributed a lot of c
399
442
  <sub><b>Po Chen</b></sub>
400
443
  </a>
401
444
  </td>
445
+ <td align="center">
446
+ <a href="https://github.com/beautifulrem">
447
+ <img src="https://avatars.githubusercontent.com/u/98527099?v=4" width="90;" alt="beautifulrem"/>
448
+ <br />
449
+ <sub><b>Xie Ruiqi</b></sub>
450
+ </a>
451
+ </td>
452
+ <td align="center">
453
+ <a href="https://github.com/bocanhcam">
454
+ <img src="https://avatars.githubusercontent.com/u/35592955?v=4" width="90;" alt="bocanhcam"/>
455
+ <br />
456
+ <sub><b>Null</b></sub>
457
+ </a>
458
+ </td></tr>
459
+ <tr>
402
460
  <td align="center">
403
461
  <a href="https://github.com/geekvest">
404
462
  <img src="https://avatars.githubusercontent.com/u/126322776?v=4" width="90;" alt="geekvest"/>
@@ -440,8 +498,7 @@ Pake's development can not be without these Hackers. They contributed a lot of c
440
498
  <br />
441
499
  <sub><b>Ranger</b></sub>
442
500
  </a>
443
- </td></tr>
444
- <tr>
501
+ </td>
445
502
  <td align="center">
446
503
  <a href="https://github.com/hetz">
447
504
  <img src="https://avatars.githubusercontent.com/u/820141?v=4" width="90;" alt="hetz"/>