You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Pake provides a command line tool, making the flow of package customization quicker and easier. See [documentation](./bin/README_EN.md) for more information.**
162
+
**Pake provides a command line tool, making the flow of package customization quicker and easier. See [documentation](./bin/README_CN.md) for more information.**
请确保 Node 版本>=16 如 16.8,不要使用 sudo 进行安装,假如 npm 报没有权限可以参考 [How to fix npm throwing error without sudo](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo)。
3
+
Ensure that your Node.js version is 16.0 or higher (e.g., 16.8). Avoid using `sudo` for the installation. If you encounter permission issues with npm, refer to [How to fix npm throwing error without sudo](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo).
-对于 windows(至少安装了`Win10 SDK(10.0.19041.0)`与`Visual Studio build tool 2022(>=17.2)`),还需要额外安装:
11
+
-**CRITICAL**: Consult [Tauri prerequisites](https://tauri.app/v1/guides/getting-started/prerequisites) before proceeding.
12
+
-For Windows users (ensure that `Win10 SDK(10.0.19041.0)`and `Visual Studio build tool 2022 (>=17.2)` are installed), additional installations are required:
13
13
14
14
1. Microsoft Visual C++ 2015-2022 Redistributable (x64)
15
15
2. Microsoft Visual C++ 2015-2022 Redistributable (x86)
16
-
3. Microsoft Visual C++ 2012 Redistributable (x86)(可选)
17
-
4. Microsoft Visual C++ 2013 Redistributable (x86)(可选)
18
-
5. Microsoft Visual C++ 2008 Redistributable (x86)(可选)
16
+
3. Microsoft Visual C++ 2012 Redistributable (x86) (optional)
17
+
4. Microsoft Visual C++ 2013 Redistributable (x86) (optional)
18
+
5. Microsoft Visual C++ 2008 Redistributable (x86) (optional)
19
19
20
-
-此外 Ubuntu 在开始之前可以运行如下命令,安装前期所需依赖。
20
+
-For Ubuntu users, execute the following commands to install the required libraries before compiling:
21
21
22
22
```bash
23
23
sudo apt install libdbus-1-dev \
@@ -35,164 +35,162 @@ npm install -g pake-cli
35
35
gnome-video-effects-extra
36
36
```
37
37
38
-
## 用法
38
+
## Usage
39
39
40
40
```bash
41
41
pake url [options]
42
42
```
43
43
44
-
打包完成后的应用程序默认为当前工作目录,首次打包由于需配置好环境,需要一些时间,请耐心等待即可。
44
+
The packaged application will be located in the current working directory by default. The first packaging might take some time due to environment configuration. Please be patient.
> **Note**: Packaging requires the Rust environment. If Rust is not installed, you will be prompted for installation confirmation. In case of installation failure or timeout, you can [install it manually](https://www.rust-lang.org/tools/install).
48
47
49
48
### url
50
49
51
-
url 为你需要打包的网页链接 🔗 或者本地 html 文件,必须提供。
50
+
The URL is the link to the web page you want to package or the path to a local HTML file. This is mandatory.
52
51
53
52
### [options]
54
53
55
-
提供了一些特定的选项,打包时可以传递对应参数达到定制化的效果。
54
+
Various options are available for customization. You can pass corresponding arguments during packaging to achieve the desired configuration.
56
55
57
56
#### [name]
58
57
59
-
应用名称,如输入时未指定,会提示你输入,尽量使用英语。
58
+
Specify the application name. If not provided, you will be prompted to enter it. It is recommended to use English.
Specify the application icon. Supports both local and remote files. By default, it uses the Pake brand icon. For custom icons, visit [iconicons](https://icon-icons.com)or[macOSicons](https://macosicons.com/#/).
70
69
71
-
-MacOS 下必须为 `.icns`
72
-
- Windows 下必须为`.ico`
73
-
- Linux 下必须为`.png`
70
+
-For macOS, use `.icns` format.
71
+
-For Windows, use`.ico` format.
72
+
-For Linux, use`.png` format.
74
73
75
74
```shell
76
75
--icon <path>
77
-
# 或者
78
-
-i <path>
79
76
```
80
77
81
78
#### [height]
82
79
83
-
打包后的应用窗口高度,默认 `780px`。
80
+
Set the height of the application window. Default is `780px`.
84
81
85
82
```shell
86
83
--height <number>
87
-
# 或者
88
-
-h <number>
89
84
```
90
85
91
86
#### [width]
92
87
93
-
打包后的应用窗口宽度,默认 `1200px`。
88
+
Set the width of the application window. Default is `1200px`.
-Note: After enabling this option, Rust must be installed using rustup from the official Rust website. Installation via brew is not supported.
127
+
-For Intel chip users, install the arm64 cross-platform package to support M1 chips using the following command:
133
128
134
129
```shell
135
130
rustup target add aarch64-apple-darwin
136
131
```
137
132
138
-
-对于 M1 芯片用户,需要安装 x86 跨平台包,使安装包支持 interl 芯片,使用下面的命令安装。
133
+
-For M1 chip users, install the x86 cross-platform package to support Intel chips using the following command:
139
134
140
135
```shell
141
136
rustup target add x86_64-apple-darwin
142
137
```
143
138
144
-
##### 使用方法
139
+
##### Usage
145
140
146
141
```shell
147
142
--multi-arch
148
-
# 或者
149
-
-m
150
143
```
151
144
152
145
#### [targets]
153
146
154
-
选择输出的包格式,支持 deb/appimage/all,如果选择 all,则同时打包 deb 和 appimage,该选项仅支持 Linux,默认为`all`。
147
+
Select the output package format for Linux. Options include `deb`, `appimage`, or `all`. If `all` is selected, both `deb` and `appimage` will be packaged. Default is `all`.
155
148
156
149
```shell
157
-
--targets xxx
150
+
--targets <format>
158
151
```
159
152
160
153
#### [user-agent]
161
154
162
-
自定义浏览器请求头, 默认为空。
155
+
Customize the browser user agent. Default is empty.
163
156
164
157
```shell
165
158
--user-agent <value>
166
159
```
167
160
168
161
#### [show-menu]
169
162
170
-
显示菜单栏, 默认不显示,输入下面的命令则会显示,推荐MacOS用户开启。
163
+
Display the menu bar. Default is not to display. Use the following command to enable the menu bar. Recommended for macOS users.
171
164
172
165
```shell
173
166
--show-menu
174
167
```
175
168
176
169
#### [show-system-tray]
177
170
178
-
显示通知栏托盘, 默认不显示,输入下面的命令则会显示。
171
+
Display the system tray. Default is not to display. Use the following command to enable the system tray.
Specify the system tray icon. This is only effective when the system tray is enabled. The icon must be in `.ico` or `.png` format and should be an image with dimensions ranging from 32x32 to 256x256 pixels.
Enable recursive copying. When the URL is a local file path, enabling this option will copy the folder containing the file specified in the URL, as well as all sub-files, to the Pake static folder. This is disabled by default.
195
188
196
189
```shell
197
190
--copy-iter-file
198
191
```
192
+
193
+
## Conclusion
194
+
195
+
After completing the above steps, your application should be successfully packaged. Please note that the packaging process may take some time depending on your system configuration and network conditions. Be patient, and once the packaging is complete, you can find the application installer in the specified directory.
0 commit comments