pake-cli 2.6.1 → 3.0.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 +30 -64
- package/dist/cli.js +113 -181
- package/dist/dev.js +121 -180
- package/dist/dev.js.map +1 -1
- package/package.json +9 -9
- package/src-tauri/Cargo.lock +1728 -2149
- package/src-tauri/Cargo.toml +16 -12
- package/src-tauri/assets/main.wxs +71 -31
- package/src-tauri/capabilities/default.json +18 -0
- package/src-tauri/gen/schemas/acl-manifests.json +1 -0
- package/src-tauri/gen/schemas/capabilities.json +1 -0
- package/src-tauri/gen/schemas/desktop-schema.json +2326 -0
- package/src-tauri/gen/schemas/macOS-schema.json +2326 -0
- package/src-tauri/icons/icon.png +0 -0
- package/src-tauri/icons/xiaoyuzhou.icns +0 -0
- package/src-tauri/pake.json +4 -2
- package/src-tauri/src/app/config.rs +2 -0
- package/src-tauri/src/app/invoke.rs +13 -12
- package/src-tauri/src/app/menu.rs +25 -20
- package/src-tauri/src/app/window.rs +13 -8
- package/src-tauri/src/inject/custom.js +0 -6
- package/src-tauri/src/inject/event.js +29 -27
- package/src-tauri/src/inject/style.js +14 -1
- package/src-tauri/src/lib.rs +133 -0
- package/src-tauri/src/main.rs +1 -88
- package/src-tauri/src/util.rs +7 -5
- package/src-tauri/tauri.conf.json +10 -33
- package/src-tauri/tauri.linux.conf.json +8 -14
- package/src-tauri/tauri.macos.conf.json +5 -20
- package/src-tauri/tauri.windows.conf.json +10 -20
- package/src-tauri/.pake/pake.json +0 -29
- package/src-tauri/.pake/tauri.conf.json +0 -75
- package/src-tauri/.pake/tauri.macos.conf.json +0 -29
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<h4 align="right"><strong>English</strong> | <a href="https://github.com/tw93/Pake/blob/
|
|
1
|
+
<h4 align="right"><strong>English</strong> | <a href="https://github.com/tw93/Pake/blob/main/README_CN.md">简体中文</a> | <a href="https://github.com/tw93/Pake/blob/main/README_JP.md">日本語</a></h4>
|
|
2
2
|
<p align="center">
|
|
3
3
|
<img src=https://gw.alipayobjects.com/zos/k/fa/logo-modified.png width=138/>
|
|
4
4
|
</p>
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
<a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x64.msi">Windows</a>
|
|
54
54
|
<a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x86_64.deb">Linux</a>
|
|
55
55
|
</td>
|
|
56
|
-
|
|
57
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
58
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
59
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
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>
|
|
60
60
|
</td>
|
|
61
61
|
</tr>
|
|
62
62
|
<tr>
|
|
63
63
|
<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/
|
|
64
|
+
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Qwerty.png width=600/></td>
|
|
65
65
|
</tr>
|
|
66
66
|
<tr>
|
|
67
67
|
<td>YouTube Music
|
|
@@ -96,22 +96,6 @@
|
|
|
96
96
|
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/ProgramMusic.jpg width=600/></td>
|
|
97
97
|
</tr>
|
|
98
98
|
<tr>
|
|
99
|
-
<td>Qwerty
|
|
100
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty.dmg">Mac</a>
|
|
101
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x64.msi">Windows</a>
|
|
102
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x86_64.deb">Linux</a>
|
|
103
|
-
</td>
|
|
104
|
-
<td>CodeRunner
|
|
105
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/CodeRunner.dmg">Mac</a>
|
|
106
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/CodeRunner_x64.msi">Windows</a>
|
|
107
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/CodeRunner_x86_64.deb">Linux</a>
|
|
108
|
-
</td>
|
|
109
|
-
</tr>
|
|
110
|
-
<tr>
|
|
111
|
-
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Qwerty.png width=600/></td>
|
|
112
|
-
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/CodeRunner.jpg width=600/></td>
|
|
113
|
-
</tr>
|
|
114
|
-
<tr>
|
|
115
99
|
<td>Flomo
|
|
116
100
|
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo.dmg">Mac</a>
|
|
117
101
|
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo_x64.msi">Windows</a>
|
|
@@ -154,7 +138,7 @@ In addition, double-click the title bar to switch to full-screen mode. For Mac u
|
|
|
154
138
|
## Before starting
|
|
155
139
|
|
|
156
140
|
1. **For beginners**: Play with Popular Packages to find out Pake's capabilities, or try to pack your application with [GitHub Actions](<https://github.com/tw93/Pake/wiki/Online-Compilation-(used-by-ordinary-users)>). Don't hesitate to reach for assistance at [Discussion](https://github.com/tw93/Pake/discussions)!
|
|
157
|
-
2. **For developers**: “Command-Line Packaging” supports macOS fully. For Windows/Linux users, it requires some tinkering. [Configure your environment](https://tauri.app/
|
|
141
|
+
2. **For developers**: “Command-Line Packaging” supports macOS fully. For Windows/Linux users, it requires some tinkering. [Configure your environment](https://tauri.app/start/prerequisites/) before getting started.
|
|
158
142
|
3. **For hackers**: For people who are good at both front-end development and Rust, how about customizing your apps' function more with the following [Customized Development](#development)?
|
|
159
143
|
|
|
160
144
|
## Command-Line Packaging
|
|
@@ -173,24 +157,13 @@ pake url [OPTIONS]...
|
|
|
173
157
|
# Feel free to play with Pake! It might take a while to prepare the environment the first time you launch Pake.
|
|
174
158
|
pake https://weekly.tw93.fun --name Weekly --hide-title-bar
|
|
175
159
|
|
|
176
|
-
# On Linux, you can run the Pake CLI via Docker
|
|
177
|
-
docker run -it --rm \ # Run interactively, remove container after exit
|
|
178
|
-
-v YOUR_DIR:/output \ # Files from container's /output will be in YOU_DIR
|
|
179
|
-
ghcr.io/tw93/pake \
|
|
180
|
-
<arguments>
|
|
181
|
-
|
|
182
|
-
# For example:
|
|
183
|
-
docker run -it --rm \
|
|
184
|
-
-v ./packages:/output \
|
|
185
|
-
ghcr.io/tw93/pake \
|
|
186
|
-
https://example.com --name myapp --icon ./icon.png
|
|
187
160
|
```
|
|
188
161
|
|
|
189
162
|
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.
|
|
190
163
|
|
|
191
164
|
## Development
|
|
192
165
|
|
|
193
|
-
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/
|
|
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/).
|
|
194
167
|
|
|
195
168
|
If you are unfamiliar with these, it is better to try out the above tool to pack with one click.
|
|
196
169
|
|
|
@@ -304,34 +277,12 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
304
277
|
<sub><b>Ikko Eltociear Ashimine</b></sub>
|
|
305
278
|
</a>
|
|
306
279
|
</td>
|
|
307
|
-
<td align="center">
|
|
308
|
-
<a href="https://github.com/mattbajorek">
|
|
309
|
-
<img src="https://avatars.githubusercontent.com/u/17235301?v=4" width="90;" alt="mattbajorek"/>
|
|
310
|
-
<br />
|
|
311
|
-
<sub><b>Matt Bajorek</b></sub>
|
|
312
|
-
</a>
|
|
313
|
-
</td>
|
|
314
280
|
<td align="center">
|
|
315
281
|
<a href="https://github.com/QingZ11">
|
|
316
282
|
<img src="https://avatars.githubusercontent.com/u/38887077?v=4" width="90;" alt="QingZ11"/>
|
|
317
283
|
<br />
|
|
318
284
|
<sub><b>Steam</b></sub>
|
|
319
285
|
</a>
|
|
320
|
-
</td></tr>
|
|
321
|
-
<tr>
|
|
322
|
-
<td align="center">
|
|
323
|
-
<a href="https://github.com/Tianj0o">
|
|
324
|
-
<img src="https://avatars.githubusercontent.com/u/68584284?v=4" width="90;" alt="Tianj0o"/>
|
|
325
|
-
<br />
|
|
326
|
-
<sub><b>Qitianjia</b></sub>
|
|
327
|
-
</a>
|
|
328
|
-
</td>
|
|
329
|
-
<td align="center">
|
|
330
|
-
<a href="https://github.com/xinyii">
|
|
331
|
-
<img src="https://avatars.githubusercontent.com/u/17895104?v=4" width="90;" alt="xinyii"/>
|
|
332
|
-
<br />
|
|
333
|
-
<sub><b>Yi Xin</b></sub>
|
|
334
|
-
</a>
|
|
335
286
|
</td>
|
|
336
287
|
<td align="center">
|
|
337
288
|
<a href="https://github.com/exposir">
|
|
@@ -339,7 +290,8 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
339
290
|
<br />
|
|
340
291
|
<sub><b>孟世博</b></sub>
|
|
341
292
|
</a>
|
|
342
|
-
</td>
|
|
293
|
+
</td></tr>
|
|
294
|
+
<tr>
|
|
343
295
|
<td align="center">
|
|
344
296
|
<a href="https://github.com/2nthony">
|
|
345
297
|
<img src="https://avatars.githubusercontent.com/u/19513289?v=4" width="90;" alt="2nthony"/>
|
|
@@ -367,8 +319,7 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
367
319
|
<br />
|
|
368
320
|
<sub><b>An Li</b></sub>
|
|
369
321
|
</a>
|
|
370
|
-
</td
|
|
371
|
-
<tr>
|
|
322
|
+
</td>
|
|
372
323
|
<td align="center">
|
|
373
324
|
<a href="https://github.com/nekomeowww">
|
|
374
325
|
<img src="https://avatars.githubusercontent.com/u/11081491?v=4" width="90;" alt="nekomeowww"/>
|
|
@@ -389,7 +340,8 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
389
340
|
<br />
|
|
390
341
|
<sub><b>Fechin</b></sub>
|
|
391
342
|
</a>
|
|
392
|
-
</td>
|
|
343
|
+
</td></tr>
|
|
344
|
+
<tr>
|
|
393
345
|
<td align="center">
|
|
394
346
|
<a href="https://github.com/ImgBotApp">
|
|
395
347
|
<img src="https://avatars.githubusercontent.com/u/31427850?v=4" width="90;" alt="ImgBotApp"/>
|
|
@@ -404,6 +356,13 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
404
356
|
<sub><b>Jiaqi Gu</b></sub>
|
|
405
357
|
</a>
|
|
406
358
|
</td>
|
|
359
|
+
<td align="center">
|
|
360
|
+
<a href="https://github.com/mattbajorek">
|
|
361
|
+
<img src="https://avatars.githubusercontent.com/u/17235301?v=4" width="90;" alt="mattbajorek"/>
|
|
362
|
+
<br />
|
|
363
|
+
<sub><b>Matt Bajorek</b></sub>
|
|
364
|
+
</a>
|
|
365
|
+
</td>
|
|
407
366
|
<td align="center">
|
|
408
367
|
<a href="https://github.com/Milo123459">
|
|
409
368
|
<img src="https://avatars.githubusercontent.com/u/50248166?v=4" width="90;" alt="Milo123459"/>
|
|
@@ -417,15 +376,22 @@ Pake's development can not be without these Hackers. They contributed a lot of c
|
|
|
417
376
|
<br />
|
|
418
377
|
<sub><b>Po Chen</b></sub>
|
|
419
378
|
</a>
|
|
420
|
-
</td
|
|
421
|
-
<
|
|
379
|
+
</td>
|
|
380
|
+
<td align="center">
|
|
381
|
+
<a href="https://github.com/Tianj0o">
|
|
382
|
+
<img src="https://avatars.githubusercontent.com/u/68584284?v=4" width="90;" alt="Tianj0o"/>
|
|
383
|
+
<br />
|
|
384
|
+
<sub><b>Qitianjia</b></sub>
|
|
385
|
+
</a>
|
|
386
|
+
</td>
|
|
422
387
|
<td align="center">
|
|
423
388
|
<a href="https://github.com/geekvest">
|
|
424
389
|
<img src="https://avatars.githubusercontent.com/u/126322776?v=4" width="90;" alt="geekvest"/>
|
|
425
390
|
<br />
|
|
426
391
|
<sub><b>Null</b></sub>
|
|
427
392
|
</a>
|
|
428
|
-
</td>
|
|
393
|
+
</td></tr>
|
|
394
|
+
<tr>
|
|
429
395
|
<td align="center">
|
|
430
396
|
<a href="https://github.com/houhoz">
|
|
431
397
|
<img src="https://avatars.githubusercontent.com/u/19684376?v=4" width="90;" alt="houhoz"/>
|