File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,18 +18,22 @@ jobs:
1818 include :
1919 - name : Linux AppImage
2020 platform : ubuntu-22.04
21+ assetCode : linux-x64
2122 rustTarget : " "
2223 args : " "
2324 - name : Windows NSIS
2425 platform : windows-latest
26+ assetCode : win-x64
2527 rustTarget : " "
2628 args : " "
2729 - name : macOS Apple Silicon
2830 platform : macos-latest
31+ assetCode : mac-arm64
2932 rustTarget : aarch64-apple-darwin
3033 args : --target aarch64-apple-darwin
3134 - name : macOS Intel
3235 platform : macos-latest
36+ assetCode : mac-x64
3337 rustTarget : x86_64-apple-darwin
3438 args : --target x86_64-apple-darwin
3539
7478 tagName : ${{ github.ref_name }}
7579 releaseName : WorktreeDesk ${{ github.ref_name }}
7680 releaseBody : See the assets below to download this version of WorktreeDesk.
81+ assetNamePattern : ' [name]_${{ github.ref_name }}_${{ matrix.assetCode }}[setup][ext]'
7782 generateReleaseNotes : true
7883 prerelease : ${{ contains(github.ref_name, '-') }}
7984 uploadUpdaterJson : true
Original file line number Diff line number Diff line change @@ -62,13 +62,22 @@ git tag v0.1.0
6262git push origin v0.1.0
6363```
6464
65- 工作流会在 GitHub Actions 中自动执行 macOS 打包 ,并把产物上传到对应的 GitHub Release。
65+ 工作流会在 GitHub Actions 中自动执行多平台打包 ,并把产物上传到对应的 GitHub Release。
6666当前发布矩阵会生成以下产物:
6767
6868- macOS app bundle
6969- Windows NSIS 安装包
7070- Linux AppImage
7171
72+ 为方便在 Release 页面区分平台,上传后的资产文件名会附带平台码:
73+
74+ - ` mac-arm64 ` : macOS Apple Silicon
75+ - ` mac-x64 ` : macOS Intel
76+ - ` win-x64 ` : Windows x64
77+ - ` linux-x64 ` : Linux x64
78+
79+ 命名格式统一为 ` WorktreeDesk_vX.Y.Z_<platform-code> ` 加原始产物扩展名;` latest.json ` 仍保持固定名称,供自动更新使用。
80+
7281如果要让自动更新真正可用,还需要在仓库 Secrets 中配置以下值:
7382
7483- ` TAURI_SIGNING_PRIVATE_KEY ` : Tauri updater 私钥内容
You can’t perform that action at this time.
0 commit comments