Skip to content

Commit 71c8046

Browse files
committed
chore(build): align CI and local production builds
- 将 .build-env 更新为 production - 在 tauri-build workflow 中为 tauri-action 增加 --features production 参数
1 parent db6393e commit 71c8046

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.build-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
development
1+
production

.github/workflows/tauri-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ jobs:
8989
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
9090
with:
9191
projectPath: .
92+
# 与本地一致,使用 production feature 进行构建
93+
args: --features production
9294
# If you create a GitHub Release (tag v*), this will attach artifacts.
9395
releaseId: ${{ github.event.release.id }}
9496

0 commit comments

Comments
 (0)