Skip to content

Commit 7772eef

Browse files
committed
ci: 优化 DMG 文件命名逻辑
- 修改 DMG 文件命名规则,针对 aarch64 架构进行特殊处理 - 使用条件表达式判断目标架构,确保 DMG 文件名正确反映架构类型
1 parent 60c9eb0 commit 7772eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
run: |
158158
# Set paths
159159
app_path="src-tauri/target/${{ matrix.target }}/release/bundle/macos/Saladict.app"
160-
dmg_path="src-tauri/target/${{ matrix.target }}/release/bundle/dmg/Saladict_${{needs.change-version.outputs.version}}_${{ matrix.target }}.dmg"
160+
dmg_path="src-tauri/target/${{ matrix.target }}/release/bundle/dmg/Saladict_${{needs.change-version.outputs.version}}_${{ contains(matrix.target, 'aarch64') && 'aarch64' || 'x86_64' }}.dmg"
161161
ocr_arm64_path="${app_path}/Contents/Resources/resources/ocr-aarch64-apple-darwin"
162162
ocr_x86_path="${app_path}/Contents/Resources/resources/ocr-x86_64-apple-darwin"
163163

0 commit comments

Comments
 (0)