🐛 调整结构/升级wry支持手势/flomo地址替换
@@ -1,79 +0,0 @@
|
||||
# Github actions 编译配置教程
|
||||
|
||||
## 1.Fork本项目
|
||||
|
||||
[Fork本项目](https://github.com/tw93/Pake/fork)
|
||||
|
||||
## 2.前往actions页面启用GitHub actions
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 3.修改app.csv文件
|
||||
|
||||

|
||||
|
||||
修改app.csv文件,自行将第二行以后的内容替换成自定义内容
|
||||
|
||||

|
||||
|
||||
格式为:`Linux下应用名称,Mac和Windows下应用名称,中文名称,网址`,注意使用英文逗号分隔
|
||||
|
||||
## 4.上传图标
|
||||
|
||||
- 上传.icns文件至`/src-tauri/icons`目录下(必须)
|
||||
- 上传.ico和.png文件至`/src-tauri/png`目录下(如果使用脚本自动转换可以跳过此步)
|
||||
|
||||
**注意:需要两个.ico文件和一个.png文件,参考下表**
|
||||
|
||||
|
||||
|
||||
| 文件名称 | 说明 |
|
||||
| ----------- | ---------------- |
|
||||
| app_32.ico | 32*32的ico图标 |
|
||||
| app_256.ico | 256*256的ico图标 |
|
||||
| app_512.png | 512*512的png图片 |
|
||||
|
||||
> 你也可以直接git整个项目到本地,使用项目根目录下的icns2png.py文件批量将.icns文件转换成.ico和.png文件(.icns文件是必须的)
|
||||
>
|
||||
> 转换完成后别忘了将对应文件上传
|
||||
|
||||
## 5.更改配置文件(可选,用于进一步自定义编译好的程序)
|
||||
|
||||
前往`/src-tauri/`目录,修改**tauri.conf.json**文件
|
||||
|
||||
参考下面图片自定义配置,**推荐修改带星号的内容**,其他可以使用默认
|
||||
|
||||

|
||||
|
||||
## 6.发布以开始运行自动编译
|
||||
|
||||
- 点击前往Releases页面
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
- 点击**Create a new release**
|
||||
|
||||

|
||||
|
||||
- 点击**Choose a tag**,输入`V0.1.0`(版本号可自定义,但是**必须以大写V开头**)
|
||||
|
||||

|
||||
|
||||
- 点击下方的**Create new tag**按钮
|
||||
|
||||

|
||||
|
||||
- 填写标题和内容(可选)
|
||||
- 如果不是在`master`分支修改,需要在target下拉栏选择对应分支
|
||||
- 点击**Publish release**
|
||||
- 此时,前往actions页面,确保出现新workflows
|
||||
|
||||

|
||||
|
||||
在编译完成后,即可在release页面看到编译完成后生成的文件(编译大约需要10-30分钟)
|
||||
@@ -1,79 +0,0 @@
|
||||
# GitHub Actions compilation and configuration tutorial
|
||||
|
||||
## 1. Fork this project
|
||||
|
||||
[Fork this project](https://github.com/tw93/Pake/fork)
|
||||
|
||||
## 2. Go to the actions page to enable GitHub actions
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 3. Modify the app.csv file
|
||||
|
||||

|
||||
|
||||
Modify the app.csv file and replace the content after the second line with custom content
|
||||
|
||||

|
||||
|
||||
The format is: `Linux application name, Mac and Windows application name, Chinese character name, URL`, pay attention to use English commas to separate
|
||||
|
||||
## 4. Upload icon
|
||||
|
||||
- Upload the .icns file to the `/src-tauri/icons` directory (required)
|
||||
- Upload the .ico and .png files to the `/src-tauri/png` directory (you can skip this step if you use the script to convert automatically)
|
||||
|
||||
**Note: Two .ico files and one .png file are required, refer to the table below**
|
||||
|
||||
|
||||
|
||||
| File Name | Description |
|
||||
| ----------- | --------------------------------- |
|
||||
| app_32.ico | A ico file with a size of 32*32 |
|
||||
| app_256.ico | A ico file with a size of 256*256 |
|
||||
| app_512.png | A png file with a size of 512*512 |
|
||||
|
||||
> You can also directly git the entire project to the local, and use the icns2png.py file in the project root directory to batch convert .icns files into .ico and .png files (.icns files are required)
|
||||
>
|
||||
> Don't forget to upload the corresponding file after the conversion is complete
|
||||
|
||||
## 5. Change the configuration file (optional, used to further customize the compiled program)
|
||||
|
||||
Go to the `/src-tauri/` directory and modify the **tauri.conf.json** file
|
||||
|
||||
Refer to the picture below to customize the configuration. **It is recommended to modify the content with an asterisk**. Others can use the default
|
||||
|
||||

|
||||
|
||||
## 6. Publish to start running automatic compilation
|
||||
|
||||
- Click to go to the Releases page
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
- Click **Create a new release**
|
||||
|
||||

|
||||
|
||||
- Click **Choose a tag** and enter `V0.1.0` (the version number can be customized, but **must start with a capital V**)
|
||||
|
||||

|
||||
|
||||
- Click the **Create new tag** button below
|
||||
|
||||

|
||||
|
||||
- Fill in title and content (optional)
|
||||
- If you are not modifying in the `master` branch, you need to select the corresponding branch in the target drop-down bar
|
||||
- Click **Publish release**
|
||||
- At this point, go to the actions page and make sure the new workflows appear
|
||||
|
||||

|
||||
|
||||
After the compilation is completed, you can see the files generated after the compilation is completed on the release page (compilation takes about 10-30 minutes)
|
||||
|
Before Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 64 KiB |