Skip to content

Commit b9d70b8

Browse files
committed
fix: Github action release.yml
--bug=1
1 parent ad4cb52 commit b9d70b8

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
tar -czf imewlconverter_osx-arm64.tar.gz publish/osx-arm64/*
4343
tar -czf imewlconverter_linux-x64.tar.gz publish/linux-x64/*
4444
tar -czf imewlconverter_linux-arm64.tar.gz publish/linux-arm64/*
45-
zip -r imewlconverter_win-x86.zip publish/win-x86/*
46-
zip -r imewlconverter_win-x64.zip publish/win-x64/*
45+
Compress-Archive -Path publish/win-x86/* -DestinationPath imewlconverter_win-x86.zip
46+
Compress-Archive -Path publish/win-x64/* -DestinationPath imewlconverter_win-x64.zip
4747
4848
- name: Upload artifacts
4949
uses: actions/upload-artifact@v4
@@ -72,25 +72,14 @@ jobs:
7272

7373
- name: Build and package macOS apps
7474
run: |
75-
# 使用Makefile构建ARM64和x64应用包
75+
# 构建ARM64版本
7676
make app-mac-arm64
77-
make app-mac-x64
78-
79-
# 重命名应用包以区分架构
8077
mv "深蓝词库转换.app" "深蓝词库转换-arm64.app"
8178
8279
# 构建x64版本
83-
make clean-packages
8480
make app-mac-x64
8581
mv "深蓝词库转换.app" "深蓝词库转换-x64.app"
8682
87-
- name: Create universal app bundle
88-
run: |
89-
# 创建通用二进制包(如果支持)
90-
echo "创建通用macOS应用包..."
91-
# 这里可以添加创建通用二进制包的逻辑
92-
# lipo -create "IME WL Converter-arm64.app/Contents/MacOS/ImeWlConverterMac" "IME WL Converter-x64.app/Contents/MacOS/ImeWlConverterMac" -output "IME WL Converter.app/Contents/MacOS/ImeWlConverterMac"
93-
9483
- name: Archive macOS apps
9584
run: |
9685
# 打包各个架构的应用包

0 commit comments

Comments
 (0)