pake-cli 2.4.0-beta1 → 2.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 +64 -57
- package/dist/cli.js +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -279,139 +279,146 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
279
279
|
</a>
|
|
280
280
|
</td>
|
|
281
281
|
<td align="center">
|
|
282
|
-
<a href="https://github.com/
|
|
283
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
282
|
+
<a href="https://github.com/QingZ11">
|
|
283
|
+
<img src="https://avatars.githubusercontent.com/u/38887077?v=4" width="90;" alt="QingZ11"/>
|
|
284
284
|
<br />
|
|
285
|
-
<sub><b
|
|
285
|
+
<sub><b>Steam</b></sub>
|
|
286
286
|
</a>
|
|
287
287
|
</td>
|
|
288
288
|
<td align="center">
|
|
289
|
-
<a href="https://github.com/
|
|
290
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
289
|
+
<a href="https://github.com/exposir">
|
|
290
|
+
<img src="https://avatars.githubusercontent.com/u/33340988?v=4" width="90;" alt="exposir"/>
|
|
291
291
|
<br />
|
|
292
|
-
<sub><b
|
|
292
|
+
<sub><b>孟世博</b></sub>
|
|
293
293
|
</a>
|
|
294
294
|
</td>
|
|
295
295
|
<td align="center">
|
|
296
|
-
<a href="https://github.com/
|
|
297
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
296
|
+
<a href="https://github.com/2nthony">
|
|
297
|
+
<img src="https://avatars.githubusercontent.com/u/19513289?v=4" width="90;" alt="2nthony"/>
|
|
298
298
|
<br />
|
|
299
|
-
<sub><b
|
|
299
|
+
<sub><b>2nthony</b></sub>
|
|
300
300
|
</a>
|
|
301
301
|
</td>
|
|
302
302
|
<td align="center">
|
|
303
|
-
<a href="https://github.com/
|
|
304
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
303
|
+
<a href="https://github.com/ACGNnsj">
|
|
304
|
+
<img src="https://avatars.githubusercontent.com/u/22112141?v=4" width="90;" alt="ACGNnsj"/>
|
|
305
305
|
<br />
|
|
306
|
-
<sub><b>
|
|
306
|
+
<sub><b>Null</b></sub>
|
|
307
307
|
</a>
|
|
308
308
|
</td></tr>
|
|
309
309
|
<tr>
|
|
310
310
|
<td align="center">
|
|
311
|
-
<a href="https://github.com/
|
|
312
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
311
|
+
<a href="https://github.com/imabutahersiddik">
|
|
312
|
+
<img src="https://avatars.githubusercontent.com/u/138387257?v=4" width="90;" alt="imabutahersiddik"/>
|
|
313
313
|
<br />
|
|
314
|
-
<sub><b>
|
|
314
|
+
<sub><b>Abu Taher Siddik</b></sub>
|
|
315
315
|
</a>
|
|
316
316
|
</td>
|
|
317
317
|
<td align="center">
|
|
318
|
-
<a href="https://github.com/
|
|
319
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
318
|
+
<a href="https://github.com/kidylee">
|
|
319
|
+
<img src="https://avatars.githubusercontent.com/u/841310?v=4" width="90;" alt="kidylee"/>
|
|
320
320
|
<br />
|
|
321
|
-
<sub><b>
|
|
321
|
+
<sub><b>An Li</b></sub>
|
|
322
322
|
</a>
|
|
323
323
|
</td>
|
|
324
324
|
<td align="center">
|
|
325
|
-
<a href="https://github.com/
|
|
326
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
325
|
+
<a href="https://github.com/nekomeowww">
|
|
326
|
+
<img src="https://avatars.githubusercontent.com/u/11081491?v=4" width="90;" alt="nekomeowww"/>
|
|
327
327
|
<br />
|
|
328
|
-
<sub><b>
|
|
328
|
+
<sub><b>Ayaka Neko</b></sub>
|
|
329
329
|
</a>
|
|
330
330
|
</td>
|
|
331
331
|
<td align="center">
|
|
332
|
-
<a href="https://github.com/
|
|
333
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
332
|
+
<a href="https://github.com/turkyden">
|
|
333
|
+
<img src="https://avatars.githubusercontent.com/u/24560160?v=4" width="90;" alt="turkyden"/>
|
|
334
334
|
<br />
|
|
335
|
-
<sub><b>
|
|
335
|
+
<sub><b>Dengju Deng</b></sub>
|
|
336
336
|
</a>
|
|
337
337
|
</td>
|
|
338
338
|
<td align="center">
|
|
339
|
-
<a href="https://github.com/
|
|
340
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
339
|
+
<a href="https://github.com/Fechin">
|
|
340
|
+
<img src="https://avatars.githubusercontent.com/u/2541482?v=4" width="90;" alt="Fechin"/>
|
|
341
341
|
<br />
|
|
342
|
-
<sub><b>
|
|
342
|
+
<sub><b>Fechin</b></sub>
|
|
343
343
|
</a>
|
|
344
344
|
</td>
|
|
345
345
|
<td align="center">
|
|
346
|
-
<a href="https://github.com/
|
|
347
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
346
|
+
<a href="https://github.com/eltociear">
|
|
347
|
+
<img src="https://avatars.githubusercontent.com/u/22633385?v=4" width="90;" alt="eltociear"/>
|
|
348
348
|
<br />
|
|
349
|
-
<sub><b>
|
|
349
|
+
<sub><b>Ikko Eltociear Ashimine</b></sub>
|
|
350
350
|
</a>
|
|
351
351
|
</td>
|
|
352
352
|
<td align="center">
|
|
353
|
-
<a href="https://github.com/
|
|
354
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
353
|
+
<a href="https://github.com/droid-Q">
|
|
354
|
+
<img src="https://avatars.githubusercontent.com/u/708277?v=4" width="90;" alt="droid-Q"/>
|
|
355
355
|
<br />
|
|
356
|
-
<sub><b>
|
|
356
|
+
<sub><b>Jiaqi Gu</b></sub>
|
|
357
357
|
</a>
|
|
358
358
|
</td></tr>
|
|
359
359
|
<tr>
|
|
360
360
|
<td align="center">
|
|
361
|
-
<a href="https://github.com/
|
|
362
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
361
|
+
<a href="https://github.com/Milo123459">
|
|
362
|
+
<img src="https://avatars.githubusercontent.com/u/50248166?v=4" width="90;" alt="Milo123459"/>
|
|
363
363
|
<br />
|
|
364
|
-
<sub><b>
|
|
364
|
+
<sub><b>Milo</b></sub>
|
|
365
365
|
</a>
|
|
366
366
|
</td>
|
|
367
367
|
<td align="center">
|
|
368
|
-
<a href="https://github.com/
|
|
369
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
368
|
+
<a href="https://github.com/princemaple">
|
|
369
|
+
<img src="https://avatars.githubusercontent.com/u/1329716?v=4" width="90;" alt="princemaple"/>
|
|
370
370
|
<br />
|
|
371
|
-
<sub><b>
|
|
371
|
+
<sub><b>Po Chen</b></sub>
|
|
372
372
|
</a>
|
|
373
373
|
</td>
|
|
374
374
|
<td align="center">
|
|
375
|
-
<a href="https://github.com/
|
|
376
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
375
|
+
<a href="https://github.com/geekvest">
|
|
376
|
+
<img src="https://avatars.githubusercontent.com/u/126322776?v=4" width="90;" alt="geekvest"/>
|
|
377
377
|
<br />
|
|
378
|
-
<sub><b>
|
|
378
|
+
<sub><b>Null</b></sub>
|
|
379
379
|
</a>
|
|
380
380
|
</td>
|
|
381
381
|
<td align="center">
|
|
382
|
-
<a href="https://github.com/
|
|
383
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
382
|
+
<a href="https://github.com/houhoz">
|
|
383
|
+
<img src="https://avatars.githubusercontent.com/u/19684376?v=4" width="90;" alt="houhoz"/>
|
|
384
384
|
<br />
|
|
385
|
-
<sub><b>
|
|
385
|
+
<sub><b>Hyzhao</b></sub>
|
|
386
386
|
</a>
|
|
387
387
|
</td>
|
|
388
388
|
<td align="center">
|
|
389
|
-
<a href="https://github.com/
|
|
390
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
389
|
+
<a href="https://github.com/lakca">
|
|
390
|
+
<img src="https://avatars.githubusercontent.com/u/16255922?v=4" width="90;" alt="lakca"/>
|
|
391
391
|
<br />
|
|
392
|
-
<sub><b>
|
|
392
|
+
<sub><b>Null</b></sub>
|
|
393
393
|
</a>
|
|
394
394
|
</td>
|
|
395
395
|
<td align="center">
|
|
396
|
-
<a href="https://github.com/
|
|
397
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
396
|
+
<a href="https://github.com/liudonghua123">
|
|
397
|
+
<img src="https://avatars.githubusercontent.com/u/2276718?v=4" width="90;" alt="liudonghua123"/>
|
|
398
398
|
<br />
|
|
399
|
-
<sub><b>
|
|
399
|
+
<sub><b>Liudonghua</b></sub>
|
|
400
400
|
</a>
|
|
401
401
|
</td>
|
|
402
402
|
<td align="center">
|
|
403
|
-
<a href="https://github.com/
|
|
404
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
403
|
+
<a href="https://github.com/liusishan">
|
|
404
|
+
<img src="https://avatars.githubusercontent.com/u/33129823?v=4" width="90;" alt="liusishan"/>
|
|
405
405
|
<br />
|
|
406
|
-
<sub><b>
|
|
406
|
+
<sub><b>Liusishan</b></sub>
|
|
407
407
|
</a>
|
|
408
408
|
</td></tr>
|
|
409
409
|
<tr>
|
|
410
410
|
<td align="center">
|
|
411
|
-
<a href="https://github.com/
|
|
412
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
411
|
+
<a href="https://github.com/piaoyidage">
|
|
412
|
+
<img src="https://avatars.githubusercontent.com/u/5135405?v=4" width="90;" alt="piaoyidage"/>
|
|
413
413
|
<br />
|
|
414
|
-
<sub><b>
|
|
414
|
+
<sub><b>Ranger</b></sub>
|
|
415
|
+
</a>
|
|
416
|
+
</td>
|
|
417
|
+
<td align="center">
|
|
418
|
+
<a href="https://github.com/hetz">
|
|
419
|
+
<img src="https://avatars.githubusercontent.com/u/820141?v=4" width="90;" alt="hetz"/>
|
|
420
|
+
<br />
|
|
421
|
+
<sub><b>贺天卓</b></sub>
|
|
415
422
|
</a>
|
|
416
423
|
</td></tr>
|
|
417
424
|
</table>
|
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ import psl from 'psl';
|
|
|
20
20
|
import isUrl from 'is-url';
|
|
21
21
|
|
|
22
22
|
var name = "pake-cli";
|
|
23
|
-
var version = "2.
|
|
23
|
+
var version = "2.5.0";
|
|
24
24
|
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
|
|
25
25
|
var engines = {
|
|
26
26
|
node: ">=16.0.0"
|
|
@@ -474,7 +474,7 @@ async function combineFiles(files, output) {
|
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
async function mergeConfig(url, options, tauriConf) {
|
|
477
|
-
const { width, height, fullscreen, hideTitleBar, alwaysOnTop, disabledWebShortcuts, activationShortcut, userAgent, showSystemTray, systemTrayIcon,
|
|
477
|
+
const { width, height, fullscreen, hideTitleBar, alwaysOnTop, disabledWebShortcuts, activationShortcut, userAgent, showSystemTray, systemTrayIcon, useLocalFile, identifier, name, resizable = true, inject, safeDomain, } = options;
|
|
478
478
|
const { platform } = process;
|
|
479
479
|
// Set Windows parameters.
|
|
480
480
|
const tauriConfWindowOptions = {
|
|
@@ -499,7 +499,7 @@ async function mergeConfig(url, options, tauriConf) {
|
|
|
499
499
|
const dirName = path.dirname(url);
|
|
500
500
|
const distDir = path.join(npmDirectory, 'dist');
|
|
501
501
|
const distBakDir = path.join(npmDirectory, 'dist_bak');
|
|
502
|
-
if (!
|
|
502
|
+
if (!useLocalFile) {
|
|
503
503
|
const urlPath = path.join(distDir, fileName);
|
|
504
504
|
await fsExtra.copy(url, urlPath);
|
|
505
505
|
}
|
|
@@ -838,7 +838,7 @@ const DEFAULT_PAKE_OPTIONS = {
|
|
|
838
838
|
showSystemTray: false,
|
|
839
839
|
multiArch: false,
|
|
840
840
|
targets: 'deb',
|
|
841
|
-
|
|
841
|
+
useLocalFile: false,
|
|
842
842
|
systemTrayIcon: '',
|
|
843
843
|
debug: false,
|
|
844
844
|
inject: [],
|
|
@@ -1024,17 +1024,18 @@ program
|
|
|
1024
1024
|
.option('--icon <string>', 'Application icon', DEFAULT_PAKE_OPTIONS.icon)
|
|
1025
1025
|
.option('--width <number>', 'Window width', validateNumberInput, DEFAULT_PAKE_OPTIONS.width)
|
|
1026
1026
|
.option('--height <number>', 'Window height', validateNumberInput, DEFAULT_PAKE_OPTIONS.height)
|
|
1027
|
+
.option('--use-local-file', 'Use local file packaging', DEFAULT_PAKE_OPTIONS.useLocalFile)
|
|
1027
1028
|
.option('--fullscreen', 'Start in full screen', DEFAULT_PAKE_OPTIONS.fullscreen)
|
|
1028
1029
|
.option('--hide-title-bar', 'Only for Mac, hide title bar', DEFAULT_PAKE_OPTIONS.hideTitleBar)
|
|
1029
1030
|
.option('--activation-shortcut <string>', 'Shortcut key to active App', DEFAULT_PAKE_OPTIONS.activationShortcut)
|
|
1030
1031
|
.option('--multi-arch', 'Only for Mac, supports both Intel and M1', DEFAULT_PAKE_OPTIONS.multiArch)
|
|
1031
1032
|
.option('--inject [injects...]', 'Injection of .js or .css Files', DEFAULT_PAKE_OPTIONS.inject)
|
|
1032
|
-
.option('--safe-domain [domains...]', 'Domains that Require Security Configuration"', DEFAULT_PAKE_OPTIONS.safeDomain)
|
|
1033
1033
|
.option('--debug', 'Debug build and more output', DEFAULT_PAKE_OPTIONS.debug)
|
|
1034
1034
|
.addOption(new Option('--user-agent <string>', 'Custom user agent').default(DEFAULT_PAKE_OPTIONS.userAgent).hideHelp())
|
|
1035
1035
|
.addOption(new Option('--targets <string>', 'Only for Linux, option "deb" or "appimage"').default(DEFAULT_PAKE_OPTIONS.targets).hideHelp())
|
|
1036
1036
|
.addOption(new Option('--always-on-top', 'Always on the top level').default(DEFAULT_PAKE_OPTIONS.alwaysOnTop).hideHelp())
|
|
1037
1037
|
.addOption(new Option('--disabled-web-shortcuts', 'Disabled webPage shortcuts').default(DEFAULT_PAKE_OPTIONS.disabledWebShortcuts).hideHelp())
|
|
1038
|
+
.addOption(new Option('--safe-domain [domains...]', 'Domains that Require Security Configuration').default(DEFAULT_PAKE_OPTIONS.safeDomain).hideHelp())
|
|
1038
1039
|
.addOption(new Option('--show-system-tray', 'Show system tray in app').default(DEFAULT_PAKE_OPTIONS.showSystemTray).hideHelp())
|
|
1039
1040
|
.addOption(new Option('--system-tray-icon <string>', 'Custom system tray icon').default(DEFAULT_PAKE_OPTIONS.systemTrayIcon).hideHelp())
|
|
1040
1041
|
.version(packageJson.version, '-v, --version', 'Output the current version')
|