fix release assets and refresh lime branding

This commit is contained in:
coso
2026-03-17 09:20:08 +08:00
parent d15d9aa65d
commit 998fe555e5
62 changed files with 371 additions and 301 deletions
+27 -27
View File
@@ -184,31 +184,6 @@ jobs:
# 默认不启用 voice feature(包含 whisper-rs,编译很慢)
args: --target ${{ matrix.target }}
- name: Build Tauri app (Windows online)
if: matrix.platform == 'windows-2022'
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 禁用 LTO 加速编译(正式发布可改为 thin)
CARGO_PROFILE_RELEASE_LTO: "off"
# 增加并行编译单元
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 32
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
with:
tauriScript: npx tauri
projectPath: src-tauri
tagName: ${{ github.event.inputs.version || github.ref_name }}
releaseName: "Lime ${{ github.event.inputs.version || github.ref_name }}"
releaseBody: ${{ env.RELEASE_BODY }}
releaseDraft: false
prerelease: false
# 默认推荐在线小包,安装时按需拉取 WebView2
releaseAssetNamePattern: "[name]_[version]_[arch]-online[setup][ext]"
# 默认不启用 voice feature(包含 whisper-rs,编译很慢)
args: --target ${{ matrix.target }} --config tauri.windows.online.conf.json
- name: Build Tauri app (Windows offline)
if: matrix.platform == 'windows-2022'
uses: tauri-apps/tauri-action@v0
@@ -229,11 +204,36 @@ jobs:
releaseBody: ${{ env.RELEASE_BODY }}
releaseDraft: false
prerelease: false
# 离线大包内置 WebView2 离线安装器,适用于无网环境
releaseAssetNamePattern: "[name]_[version]_[arch]-offline[setup][ext]"
# tauri-action@v0 使用 assetNamePattern,离线包优先上传并保留独立名称
assetNamePattern: "[name]_[version]_[arch]-offline[setup][ext]"
# 默认不启用 voice feature(包含 whisper-rs,编译很慢)
args: --target ${{ matrix.target }} --config tauri.windows.conf.json
- name: Build Tauri app (Windows online)
if: matrix.platform == 'windows-2022'
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 禁用 LTO 加速编译(正式发布可改为 thin)
CARGO_PROFILE_RELEASE_LTO: "off"
# 增加并行编译单元
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 32
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
with:
tauriScript: npx tauri
projectPath: src-tauri
tagName: ${{ github.event.inputs.version || github.ref_name }}
releaseName: "Lime ${{ github.event.inputs.version || github.ref_name }}"
releaseBody: ${{ env.RELEASE_BODY }}
releaseDraft: false
prerelease: false
# tauri-action@v0 使用 assetNamePattern,在线包作为体积更小的备选
assetNamePattern: "[name]_[version]_[arch]-online[setup][ext]"
# 默认不启用 voice feature(包含 whisper-rs,编译很慢)
args: --target ${{ matrix.target }} --config tauri.windows.online.conf.json
- name: Build Tauri app (macOS with notarization, attempt 1)
id: build_macos_primary
if: matrix.platform == 'macos-latest'