pake-cli 3.5.2 → 3.6.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 +23 -364
- package/dist/cli.js +39 -6
- package/package.json +1 -1
- package/src-tauri/Cargo.lock +52 -30
- package/src-tauri/Cargo.toml +10 -9
- package/src-tauri/gen/schemas/acl-manifests.json +1 -1
- package/src-tauri/gen/schemas/desktop-schema.json +233 -0
- package/src-tauri/gen/schemas/macOS-schema.json +233 -0
- package/src-tauri/src/app/config.rs +12 -0
- package/src-tauri/src/app/invoke.rs +37 -0
- package/src-tauri/src/app/window.rs +75 -0
- package/src-tauri/src/inject/auth.js +75 -0
- package/src-tauri/src/inject/event.js +10 -1
- package/src-tauri/src/inject/theme_refresh.js +124 -0
- package/src-tauri/src/lib.rs +247 -2
- package/src-tauri/tauri.conf.json +2 -1
- package/src-tauri/.pake/pake.json +0 -38
- package/src-tauri/.pake/tauri.conf.json +0 -26
- package/src-tauri/.pake/tauri.linux.conf.json +0 -13
- package/src-tauri/.pake/tauri.macos.conf.json +0 -14
- package/src-tauri/.pake/tauri.windows.conf.json +0 -15
package/README.md
CHANGED
|
@@ -137,20 +137,23 @@
|
|
|
137
137
|
|
|
138
138
|
<br/>
|
|
139
139
|
|
|
140
|
-
| Mac
|
|
141
|
-
|
|
|
142
|
-
| <kbd>⌘</kbd> + <kbd>[</kbd>
|
|
143
|
-
| <kbd>⌘</kbd> + <kbd>]</kbd>
|
|
144
|
-
| <kbd>⌘</kbd> + <kbd>↑</kbd>
|
|
145
|
-
| <kbd>⌘</kbd> + <kbd>↓</kbd>
|
|
146
|
-
| <kbd>⌘</kbd> + <kbd>r</kbd>
|
|
147
|
-
| <kbd>⌘</kbd> + <kbd>w</kbd>
|
|
148
|
-
| <kbd>⌘</kbd> + <kbd>-</kbd>
|
|
149
|
-
| <kbd>⌘</kbd> + <kbd
|
|
150
|
-
| <kbd>⌘</kbd> + <kbd
|
|
151
|
-
| <kbd>⌘</kbd> + <kbd>
|
|
152
|
-
|
|
153
|
-
|
|
140
|
+
| Mac | Windows/Linux | Function |
|
|
141
|
+
| ------------------------------------------ | --------------------------------------------------- | ----------------------------------- |
|
|
142
|
+
| <kbd>⌘</kbd> + <kbd>[</kbd> | <kbd>Ctrl</kbd> + <kbd>←</kbd> | Return to the previous page |
|
|
143
|
+
| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | Go to the next page |
|
|
144
|
+
| <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | Auto scroll to top of page |
|
|
145
|
+
| <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | Auto scroll to bottom of page |
|
|
146
|
+
| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | Refresh Page |
|
|
147
|
+
| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | Hide window, not quit |
|
|
148
|
+
| <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | Zoom out the page |
|
|
149
|
+
| <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | Zoom in the Page |
|
|
150
|
+
| <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | Reset the page zoom |
|
|
151
|
+
| <kbd>⌘</kbd> + <kbd>L</kbd> | <kbd>Ctrl</kbd> + <kbd>L</kbd> | Copy Current Page URL |
|
|
152
|
+
| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>H</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>H</kbd> | Go to Home Page |
|
|
153
|
+
| <kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>I</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd> | Toggle Developer Tools (Debug Only) |
|
|
154
|
+
| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | Clear Cache & Restart |
|
|
155
|
+
|
|
156
|
+
In addition, double-click the title bar to switch to full-screen mode. For Mac users, you can also use the gesture to go to the previous or next page and drag the title bar to move the window. The new menu also offers options for navigation, zoom, and window controls.
|
|
154
157
|
|
|
155
158
|
</details>
|
|
156
159
|
|
|
@@ -173,7 +176,7 @@ First-time packaging requires environment setup and may be slower, subsequent bu
|
|
|
173
176
|
|
|
174
177
|
## Development
|
|
175
178
|
|
|
176
|
-
Requires Rust `>=1.
|
|
179
|
+
Requires Rust `>=1.85` and Node `>=22`. For detailed installation guide, see [Tauri documentation](https://tauri.app/start/prerequisites/). If unfamiliar with development environment, use the CLI tool instead.
|
|
177
180
|
|
|
178
181
|
```bash
|
|
179
182
|
# Install dependencies
|
|
@@ -192,358 +195,14 @@ For style customization, feature enhancement, container communication and other
|
|
|
192
195
|
|
|
193
196
|
Pake's development can not be without these Hackers. They contributed a lot of capabilities for Pake. Also, welcome to follow them! ❤️
|
|
194
197
|
|
|
195
|
-
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
<tr>
|
|
199
|
-
<td align="center">
|
|
200
|
-
<a href="https://github.com/tw93">
|
|
201
|
-
<img src="https://avatars.githubusercontent.com/u/8736212?v=4" width="90;" alt="tw93"/>
|
|
202
|
-
<br />
|
|
203
|
-
<sub><b>Tw93</b></sub>
|
|
204
|
-
</a>
|
|
205
|
-
</td>
|
|
206
|
-
<td align="center">
|
|
207
|
-
<a href="https://github.com/Tlntin">
|
|
208
|
-
<img src="https://avatars.githubusercontent.com/u/28218658?v=4" width="90;" alt="Tlntin"/>
|
|
209
|
-
<br />
|
|
210
|
-
<sub><b>Tlntin</b></sub>
|
|
211
|
-
</a>
|
|
212
|
-
</td>
|
|
213
|
-
<td align="center">
|
|
214
|
-
<a href="https://github.com/jeasonnow">
|
|
215
|
-
<img src="https://avatars.githubusercontent.com/u/16950207?v=4" width="90;" alt="jeasonnow"/>
|
|
216
|
-
<br />
|
|
217
|
-
<sub><b>Santree</b></sub>
|
|
218
|
-
</a>
|
|
219
|
-
</td>
|
|
220
|
-
<td align="center">
|
|
221
|
-
<a href="https://github.com/pan93412">
|
|
222
|
-
<img src="https://avatars.githubusercontent.com/u/28441561?v=4" width="90;" alt="pan93412"/>
|
|
223
|
-
<br />
|
|
224
|
-
<sub><b>Pan93412</b></sub>
|
|
225
|
-
</a>
|
|
226
|
-
</td>
|
|
227
|
-
<td align="center">
|
|
228
|
-
<a href="https://github.com/stone-w4tch3r">
|
|
229
|
-
<img src="https://avatars.githubusercontent.com/u/100294019?v=4" width="90;" alt="stone-w4tch3r"/>
|
|
230
|
-
<br />
|
|
231
|
-
<sub><b>Данил Бизимов</b></sub>
|
|
232
|
-
</a>
|
|
233
|
-
</td>
|
|
234
|
-
<td align="center">
|
|
235
|
-
<a href="https://github.com/wanghanzhen">
|
|
236
|
-
<img src="https://avatars.githubusercontent.com/u/25301012?v=4" width="90;" alt="wanghanzhen"/>
|
|
237
|
-
<br />
|
|
238
|
-
<sub><b>Volare</b></sub>
|
|
239
|
-
</a>
|
|
240
|
-
</td>
|
|
241
|
-
<td align="center">
|
|
242
|
-
<a href="https://github.com/liby">
|
|
243
|
-
<img src="https://avatars.githubusercontent.com/u/38807139?v=4" width="90;" alt="liby"/>
|
|
244
|
-
<br />
|
|
245
|
-
<sub><b>Bryan Lee</b></sub>
|
|
246
|
-
</a>
|
|
247
|
-
</td>
|
|
248
|
-
</tr>
|
|
249
|
-
<tr>
|
|
250
|
-
<td align="center">
|
|
251
|
-
<a href="https://github.com/essesoul">
|
|
252
|
-
<img src="https://avatars.githubusercontent.com/u/58624474?v=4" width="90;" alt="essesoul"/>
|
|
253
|
-
<br />
|
|
254
|
-
<sub><b>Essesoul</b></sub>
|
|
255
|
-
</a>
|
|
256
|
-
</td>
|
|
257
|
-
<td align="center">
|
|
258
|
-
<a href="https://github.com/YangguangZhou">
|
|
259
|
-
<img src="https://avatars.githubusercontent.com/u/61733195?v=4" width="90;" alt="YangguangZhou"/>
|
|
260
|
-
<br />
|
|
261
|
-
<sub><b>Jerry Zhou</b></sub>
|
|
262
|
-
</a>
|
|
263
|
-
</td>
|
|
264
|
-
<td align="center">
|
|
265
|
-
<a href="https://github.com/AielloChan">
|
|
266
|
-
<img src="https://avatars.githubusercontent.com/u/7900765?v=4" width="90;" alt="AielloChan"/>
|
|
267
|
-
<br />
|
|
268
|
-
<sub><b>Aiello</b></sub>
|
|
269
|
-
</a>
|
|
270
|
-
</td>
|
|
271
|
-
<td align="center">
|
|
272
|
-
<a href="https://github.com/m1911star">
|
|
273
|
-
<img src="https://avatars.githubusercontent.com/u/4948120?v=4" width="90;" alt="m1911star"/>
|
|
274
|
-
<br />
|
|
275
|
-
<sub><b>Horus</b></sub>
|
|
276
|
-
</a>
|
|
277
|
-
</td>
|
|
278
|
-
<td align="center">
|
|
279
|
-
<a href="https://github.com/Pake-Actions">
|
|
280
|
-
<img src="https://avatars.githubusercontent.com/u/126550811?v=4" width="90;" alt="Pake-Actions"/>
|
|
281
|
-
<br />
|
|
282
|
-
<sub><b>Pake Actions</b></sub>
|
|
283
|
-
</a>
|
|
284
|
-
</td>
|
|
285
|
-
<td align="center">
|
|
286
|
-
<a href="https://github.com/GoodbyeNJN">
|
|
287
|
-
<img src="https://avatars.githubusercontent.com/u/6856639?v=4" width="90;" alt="GoodbyeNJN"/>
|
|
288
|
-
<br />
|
|
289
|
-
<sub><b>GoodbyeNJN</b></sub>
|
|
290
|
-
</a>
|
|
291
|
-
</td>
|
|
292
|
-
<td align="center">
|
|
293
|
-
<a href="https://github.com/eltociear">
|
|
294
|
-
<img src="https://avatars.githubusercontent.com/u/22633385?v=4" width="90;" alt="eltociear"/>
|
|
295
|
-
<br />
|
|
296
|
-
<sub><b>Ikko Eltociear Ashimine</b></sub>
|
|
297
|
-
</a>
|
|
298
|
-
</td>
|
|
299
|
-
</tr>
|
|
300
|
-
<tr>
|
|
301
|
-
<td align="center">
|
|
302
|
-
<a href="https://github.com/kittizz">
|
|
303
|
-
<img src="https://avatars.githubusercontent.com/u/62899732?v=4" width="90;" alt="kittizz"/>
|
|
304
|
-
<br />
|
|
305
|
-
<sub><b>Kittizz</b></sub>
|
|
306
|
-
</a>
|
|
307
|
-
</td>
|
|
308
|
-
<td align="center">
|
|
309
|
-
<a href="https://github.com/mattbajorek">
|
|
310
|
-
<img src="https://avatars.githubusercontent.com/u/17235301?v=4" width="90;" alt="mattbajorek"/>
|
|
311
|
-
<br />
|
|
312
|
-
<sub><b>Matt Bajorek</b></sub>
|
|
313
|
-
</a>
|
|
314
|
-
</td>
|
|
315
|
-
<td align="center">
|
|
316
|
-
<a href="https://github.com/vaddisrinivas">
|
|
317
|
-
<img src="https://avatars.githubusercontent.com/u/38348871?v=4" width="90;" alt="vaddisrinivas"/>
|
|
318
|
-
<br />
|
|
319
|
-
<sub><b>Srinivas Vaddi</b></sub>
|
|
320
|
-
</a>
|
|
321
|
-
</td>
|
|
322
|
-
<td align="center">
|
|
323
|
-
<a href="https://github.com/QingZ11">
|
|
324
|
-
<img src="https://avatars.githubusercontent.com/u/38887077?v=4" width="90;" alt="QingZ11"/>
|
|
325
|
-
<br />
|
|
326
|
-
<sub><b>Steam</b></sub>
|
|
327
|
-
</a>
|
|
328
|
-
</td>
|
|
329
|
-
<td align="center">
|
|
330
|
-
<a href="https://github.com/Tianj0o">
|
|
331
|
-
<img src="https://avatars.githubusercontent.com/u/68584284?v=4" width="90;" alt="Tianj0o"/>
|
|
332
|
-
<br />
|
|
333
|
-
<sub><b>Qitianjia</b></sub>
|
|
334
|
-
</a>
|
|
335
|
-
</td>
|
|
336
|
-
<td align="center">
|
|
337
|
-
<a href="https://github.com/xinyii">
|
|
338
|
-
<img src="https://avatars.githubusercontent.com/u/17895104?v=4" width="90;" alt="xinyii"/>
|
|
339
|
-
<br />
|
|
340
|
-
<sub><b>Yi Xin</b></sub>
|
|
341
|
-
</a>
|
|
342
|
-
</td>
|
|
343
|
-
<td align="center">
|
|
344
|
-
<a href="https://github.com/g1eny0ung">
|
|
345
|
-
<img src="https://avatars.githubusercontent.com/u/15034155?v=4" width="90;" alt="g1eny0ung"/>
|
|
346
|
-
<br />
|
|
347
|
-
<sub><b>Yue Yang</b></sub>
|
|
348
|
-
</a>
|
|
349
|
-
</td>
|
|
350
|
-
</tr>
|
|
351
|
-
<tr>
|
|
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>
|
|
359
|
-
<td align="center">
|
|
360
|
-
<a href="https://github.com/exposir">
|
|
361
|
-
<img src="https://avatars.githubusercontent.com/u/33340988?v=4" width="90;" alt="exposir"/>
|
|
362
|
-
<br />
|
|
363
|
-
<sub><b>孟世博</b></sub>
|
|
364
|
-
</a>
|
|
365
|
-
</td>
|
|
366
|
-
<td align="center">
|
|
367
|
-
<a href="https://github.com/2nthony">
|
|
368
|
-
<img src="https://avatars.githubusercontent.com/u/19513289?v=4" width="90;" alt="2nthony"/>
|
|
369
|
-
<br />
|
|
370
|
-
<sub><b>2nthony</b></sub>
|
|
371
|
-
</a>
|
|
372
|
-
</td>
|
|
373
|
-
<td align="center">
|
|
374
|
-
<a href="https://github.com/ACGNnsj">
|
|
375
|
-
<img src="https://avatars.githubusercontent.com/u/22112141?v=4" width="90;" alt="ACGNnsj"/>
|
|
376
|
-
<br />
|
|
377
|
-
<sub><b>Null</b></sub>
|
|
378
|
-
</a>
|
|
379
|
-
</td>
|
|
380
|
-
<td align="center">
|
|
381
|
-
<a href="https://github.com/imabutahersiddik">
|
|
382
|
-
<img src="https://avatars.githubusercontent.com/u/138387257?v=4" width="90;" alt="imabutahersiddik"/>
|
|
383
|
-
<br />
|
|
384
|
-
<sub><b>Abu Taher Siddik</b></sub>
|
|
385
|
-
</a>
|
|
386
|
-
</td>
|
|
387
|
-
<td align="center">
|
|
388
|
-
<a href="https://github.com/kidylee">
|
|
389
|
-
<img src="https://avatars.githubusercontent.com/u/841310?v=4" width="90;" alt="kidylee"/>
|
|
390
|
-
<br />
|
|
391
|
-
<sub><b>An Li</b></sub>
|
|
392
|
-
</a>
|
|
393
|
-
</td>
|
|
394
|
-
<td align="center">
|
|
395
|
-
<a href="https://github.com/nekomeowww">
|
|
396
|
-
<img src="https://avatars.githubusercontent.com/u/11081491?v=4" width="90;" alt="nekomeowww"/>
|
|
397
|
-
<br />
|
|
398
|
-
<sub><b>Ayaka Neko</b></sub>
|
|
399
|
-
</a>
|
|
400
|
-
</td>
|
|
401
|
-
</tr>
|
|
402
|
-
<tr>
|
|
403
|
-
<td align="center">
|
|
404
|
-
<a href="https://github.com/claude">
|
|
405
|
-
<img src="https://avatars.githubusercontent.com/u/81847?v=4" width="90;" alt="claude"/>
|
|
406
|
-
<br />
|
|
407
|
-
<sub><b>Claude</b></sub>
|
|
408
|
-
</a>
|
|
409
|
-
</td>
|
|
410
|
-
<td align="center">
|
|
411
|
-
<a href="https://github.com/turkyden">
|
|
412
|
-
<img src="https://avatars.githubusercontent.com/u/24560160?v=4" width="90;" alt="turkyden"/>
|
|
413
|
-
<br />
|
|
414
|
-
<sub><b>Dengju Deng</b></sub>
|
|
415
|
-
</a>
|
|
416
|
-
</td>
|
|
417
|
-
<td align="center">
|
|
418
|
-
<a href="https://github.com/fvn-elmy">
|
|
419
|
-
<img src="https://avatars.githubusercontent.com/u/71275745?v=4" width="90;" alt="fvn-elmy"/>
|
|
420
|
-
<br />
|
|
421
|
-
<sub><b>Fabien</b></sub>
|
|
422
|
-
</a>
|
|
423
|
-
</td>
|
|
424
|
-
<td align="center">
|
|
425
|
-
<a href="https://github.com/Fechin">
|
|
426
|
-
<img src="https://avatars.githubusercontent.com/u/2541482?v=4" width="90;" alt="Fechin"/>
|
|
427
|
-
<br />
|
|
428
|
-
<sub><b>Fechin</b></sub>
|
|
429
|
-
</a>
|
|
430
|
-
</td>
|
|
431
|
-
<td align="center">
|
|
432
|
-
<a href="https://github.com/ImgBotApp">
|
|
433
|
-
<img src="https://avatars.githubusercontent.com/u/31427850?v=4" width="90;" alt="ImgBotApp"/>
|
|
434
|
-
<br />
|
|
435
|
-
<sub><b>Imgbot</b></sub>
|
|
436
|
-
</a>
|
|
437
|
-
</td>
|
|
438
|
-
<td align="center">
|
|
439
|
-
<a href="https://github.com/droid-Q">
|
|
440
|
-
<img src="https://avatars.githubusercontent.com/u/708277?v=4" width="90;" alt="droid-Q"/>
|
|
441
|
-
<br />
|
|
442
|
-
<sub><b>Jiaqi Gu</b></sub>
|
|
443
|
-
</a>
|
|
444
|
-
</td>
|
|
445
|
-
<td align="center">
|
|
446
|
-
<a href="https://github.com/JohannLai">
|
|
447
|
-
<img src="https://avatars.githubusercontent.com/u/10769405?v=4" width="90;" alt="JohannLai"/>
|
|
448
|
-
<br />
|
|
449
|
-
<sub><b>Johannlai</b></sub>
|
|
450
|
-
</a>
|
|
451
|
-
</td>
|
|
452
|
-
</tr>
|
|
453
|
-
<tr>
|
|
454
|
-
<td align="center">
|
|
455
|
-
<a href="https://github.com/Jason6987">
|
|
456
|
-
<img src="https://avatars.githubusercontent.com/u/140222795?v=4" width="90;" alt="Jason6987"/>
|
|
457
|
-
<br />
|
|
458
|
-
<sub><b>Luminall</b></sub>
|
|
459
|
-
</a>
|
|
460
|
-
</td>
|
|
461
|
-
<td align="center">
|
|
462
|
-
<a href="https://github.com/Milo123459">
|
|
463
|
-
<img src="https://avatars.githubusercontent.com/u/50248166?v=4" width="90;" alt="Milo123459"/>
|
|
464
|
-
<br />
|
|
465
|
-
<sub><b>Milo</b></sub>
|
|
466
|
-
</a>
|
|
467
|
-
</td>
|
|
468
|
-
<td align="center">
|
|
469
|
-
<a href="https://github.com/princemaple">
|
|
470
|
-
<img src="https://avatars.githubusercontent.com/u/1329716?v=4" width="90;" alt="princemaple"/>
|
|
471
|
-
<br />
|
|
472
|
-
<sub><b>Po Chen</b></sub>
|
|
473
|
-
</a>
|
|
474
|
-
</td>
|
|
475
|
-
<td align="center">
|
|
476
|
-
<a href="https://github.com/beautifulrem">
|
|
477
|
-
<img src="https://avatars.githubusercontent.com/u/98527099?v=4" width="90;" alt="beautifulrem"/>
|
|
478
|
-
<br />
|
|
479
|
-
<sub><b>Xie Ruiqi</b></sub>
|
|
480
|
-
</a>
|
|
481
|
-
</td>
|
|
482
|
-
<td align="center">
|
|
483
|
-
<a href="https://github.com/bocanhcam">
|
|
484
|
-
<img src="https://avatars.githubusercontent.com/u/35592955?v=4" width="90;" alt="bocanhcam"/>
|
|
485
|
-
<br />
|
|
486
|
-
<sub><b>Null</b></sub>
|
|
487
|
-
</a>
|
|
488
|
-
</td>
|
|
489
|
-
<td align="center">
|
|
490
|
-
<a href="https://github.com/geekvest">
|
|
491
|
-
<img src="https://avatars.githubusercontent.com/u/126322776?v=4" width="90;" alt="geekvest"/>
|
|
492
|
-
<br />
|
|
493
|
-
<sub><b>Null</b></sub>
|
|
494
|
-
</a>
|
|
495
|
-
</td>
|
|
496
|
-
<td align="center">
|
|
497
|
-
<a href="https://github.com/houhoz">
|
|
498
|
-
<img src="https://avatars.githubusercontent.com/u/19684376?v=4" width="90;" alt="houhoz"/>
|
|
499
|
-
<br />
|
|
500
|
-
<sub><b>Hyzhao</b></sub>
|
|
501
|
-
</a>
|
|
502
|
-
</td>
|
|
503
|
-
</tr>
|
|
504
|
-
<tr>
|
|
505
|
-
<td align="center">
|
|
506
|
-
<a href="https://github.com/lakca">
|
|
507
|
-
<img src="https://avatars.githubusercontent.com/u/16255922?v=4" width="90;" alt="lakca"/>
|
|
508
|
-
<br />
|
|
509
|
-
<sub><b>Null</b></sub>
|
|
510
|
-
</a>
|
|
511
|
-
</td>
|
|
512
|
-
<td align="center">
|
|
513
|
-
<a href="https://github.com/liudonghua123">
|
|
514
|
-
<img src="https://avatars.githubusercontent.com/u/2276718?v=4" width="90;" alt="liudonghua123"/>
|
|
515
|
-
<br />
|
|
516
|
-
<sub><b>Liudonghua</b></sub>
|
|
517
|
-
</a>
|
|
518
|
-
</td>
|
|
519
|
-
<td align="center">
|
|
520
|
-
<a href="https://github.com/liusishan">
|
|
521
|
-
<img src="https://avatars.githubusercontent.com/u/33129823?v=4" width="90;" alt="liusishan"/>
|
|
522
|
-
<br />
|
|
523
|
-
<sub><b>Liusishan</b></sub>
|
|
524
|
-
</a>
|
|
525
|
-
</td>
|
|
526
|
-
<td align="center">
|
|
527
|
-
<a href="https://github.com/piaoyidage">
|
|
528
|
-
<img src="https://avatars.githubusercontent.com/u/5135405?v=4" width="90;" alt="piaoyidage"/>
|
|
529
|
-
<br />
|
|
530
|
-
<sub><b>Ranger</b></sub>
|
|
531
|
-
</a>
|
|
532
|
-
</td>
|
|
533
|
-
<td align="center">
|
|
534
|
-
<a href="https://github.com/hetz">
|
|
535
|
-
<img src="https://avatars.githubusercontent.com/u/820141?v=4" width="90;" alt="hetz"/>
|
|
536
|
-
<br />
|
|
537
|
-
<sub><b>贺天卓</b></sub>
|
|
538
|
-
</a>
|
|
539
|
-
</td>
|
|
540
|
-
</tr>
|
|
541
|
-
<tbody>
|
|
542
|
-
</table>
|
|
543
|
-
<!-- readme: contributors -end -->
|
|
198
|
+
<a href="https://github.com/tw93/Pake/graphs/contributors">
|
|
199
|
+
<img src="https://raw.githubusercontent.com/tw93/Pake/main/CONTRIBUTORS.svg?sanitize=true" alt="Contributors" width="1000" />
|
|
200
|
+
</a>
|
|
544
201
|
|
|
545
202
|
## Support
|
|
546
203
|
|
|
204
|
+
<a href="https://miaoyan.app/cats.html?name=Pake"><img src="https://miaoyan.app/assets/sponsors.svg" width="1000px" /></a>
|
|
205
|
+
|
|
547
206
|
1. I have two cats, TangYuan and Coke. If you think Pake delights your life, you can feed them <a href="https://miaoyan.app/cats.html?name=Pake" target="_blank">food 🥩</a>.
|
|
548
207
|
2. If you like Pake, you can star it on GitHub. Also, welcome to [recommend Pake](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20Turn%20any%20webpage%20into%20a%20desktop%20app%20with%20one%20command.%20Nearly%2020x%20smaller%20than%20Electron%20packages,%20supports%20macOS%20Windows%20Linux) to your friends.
|
|
549
208
|
3. You can follow my [Twitter](https://twitter.com/HiTw93) to get the latest news of Pake or join our [Telegram](https://t.me/+GclQS9ZnxyI2ODQ1) chat group.
|
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.
|
|
26
|
+
var version = "3.6.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"
|
|
@@ -396,12 +396,16 @@ function checkRustInstalled() {
|
|
|
396
396
|
|
|
397
397
|
async function combineFiles(files, output) {
|
|
398
398
|
const contents = files.map((file) => {
|
|
399
|
-
const fileContent = fs.readFileSync(file);
|
|
400
399
|
if (file.endsWith('.css')) {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
400
|
+
const fileContent = fs.readFileSync(file, 'utf-8');
|
|
401
|
+
return `window.addEventListener('DOMContentLoaded', (_event) => {
|
|
402
|
+
const css = ${JSON.stringify(fileContent)};
|
|
403
|
+
const style = document.createElement('style');
|
|
404
|
+
style.innerHTML = css;
|
|
405
|
+
document.head.appendChild(style);
|
|
406
|
+
});`;
|
|
404
407
|
}
|
|
408
|
+
const fileContent = fs.readFileSync(file);
|
|
405
409
|
return ("window.addEventListener('DOMContentLoaded', (_event) => { " +
|
|
406
410
|
fileContent +
|
|
407
411
|
' });');
|
|
@@ -470,7 +474,7 @@ async function mergeConfig(url, options, tauriConf) {
|
|
|
470
474
|
await fsExtra.copy(sourcePath, destPath);
|
|
471
475
|
}
|
|
472
476
|
}));
|
|
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;
|
|
477
|
+
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, zoom, minWidth, minHeight, ignoreCertificateErrors, } = options;
|
|
474
478
|
const { platform } = process;
|
|
475
479
|
const platformHideOnClose = hideOnClose ?? platform === 'darwin';
|
|
476
480
|
const tauriConfWindowOptions = {
|
|
@@ -491,6 +495,10 @@ async function mergeConfig(url, options, tauriConf) {
|
|
|
491
495
|
enable_drag_drop: enableDragDrop,
|
|
492
496
|
start_to_tray: startToTray && showSystemTray,
|
|
493
497
|
force_internal_navigation: forceInternalNavigation,
|
|
498
|
+
zoom,
|
|
499
|
+
min_width: minWidth,
|
|
500
|
+
min_height: minHeight,
|
|
501
|
+
ignore_certificate_errors: ignoreCertificateErrors,
|
|
494
502
|
};
|
|
495
503
|
Object.assign(tauriConf.pake.windows[0], { url, ...tauriConfWindowOptions });
|
|
496
504
|
tauriConf.productName = name;
|
|
@@ -1363,6 +1371,10 @@ const DEFAULT_PAKE_OPTIONS = {
|
|
|
1363
1371
|
multiInstance: false,
|
|
1364
1372
|
startToTray: false,
|
|
1365
1373
|
forceInternalNavigation: false,
|
|
1374
|
+
zoom: 100,
|
|
1375
|
+
minWidth: 0,
|
|
1376
|
+
minHeight: 0,
|
|
1377
|
+
ignoreCertificateErrors: false,
|
|
1366
1378
|
};
|
|
1367
1379
|
|
|
1368
1380
|
async function checkUpdateTips() {
|
|
@@ -1900,6 +1912,27 @@ program
|
|
|
1900
1912
|
.addOption(new Option('--installer-language <string>', 'Installer language')
|
|
1901
1913
|
.default(DEFAULT_PAKE_OPTIONS.installerLanguage)
|
|
1902
1914
|
.hideHelp())
|
|
1915
|
+
.addOption(new Option('--zoom <number>', 'Initial page zoom level (50-200)')
|
|
1916
|
+
.default(DEFAULT_PAKE_OPTIONS.zoom)
|
|
1917
|
+
.argParser((value) => {
|
|
1918
|
+
const zoom = parseInt(value);
|
|
1919
|
+
if (isNaN(zoom) || zoom < 50 || zoom > 200) {
|
|
1920
|
+
throw new Error('--zoom must be a number between 50 and 200');
|
|
1921
|
+
}
|
|
1922
|
+
return zoom;
|
|
1923
|
+
})
|
|
1924
|
+
.hideHelp())
|
|
1925
|
+
.addOption(new Option('--min-width <number>', 'Minimum window width')
|
|
1926
|
+
.default(DEFAULT_PAKE_OPTIONS.minWidth)
|
|
1927
|
+
.argParser(validateNumberInput)
|
|
1928
|
+
.hideHelp())
|
|
1929
|
+
.addOption(new Option('--min-height <number>', 'Minimum window height')
|
|
1930
|
+
.default(DEFAULT_PAKE_OPTIONS.minHeight)
|
|
1931
|
+
.argParser(validateNumberInput)
|
|
1932
|
+
.hideHelp())
|
|
1933
|
+
.addOption(new Option('--ignore-certificate-errors', 'Ignore certificate errors (for self-signed certificates)')
|
|
1934
|
+
.default(DEFAULT_PAKE_OPTIONS.ignoreCertificateErrors)
|
|
1935
|
+
.hideHelp())
|
|
1903
1936
|
.version(packageJson.version, '-v, --version')
|
|
1904
1937
|
.configureHelp({
|
|
1905
1938
|
sortSubcommands: true,
|