Skip to content

Commit af1c397

Browse files
committed
开始打包
1 parent bfe7747 commit af1c397

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/build-unified.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,26 @@ jobs:
172172
# 复制 LICENSE 文件到zip_dist/SecRandom/data目录下
173173
Copy-Item LICENSE zip_dist/SecRandom/data/
174174
175-
# Inno Setup 打包
175+
- name: 安装 Inno Setup 中文语言文件
176+
if: matrix.platform == 'windows'
177+
run: |
178+
echo "下载 Inno Setup 中文语言文件..."
179+
$langUrl = "https://raw.githubusercontent.com/kira-96/Inno-Setup-Chinese-Simplified-Translation/main/ChineseSimplified.isl"
180+
$langPath = "C:\Program Files (x86)\Inno Setup 6\Languages\ChineseSimplified.isl"
181+
$langDir = "C:\Program Files (x86)\Inno Setup 6\Languages"
182+
183+
# 确保 Languages 目录存在
184+
if (!(Test-Path $langDir)) {
185+
New-Item -ItemType Directory -Path $langDir -Force
186+
}
187+
188+
# 下载中文语言文件
189+
Invoke-WebRequest -Uri $langUrl -OutFile $langPath
190+
echo "中文语言文件下载完成: $langPath"
191+
192+
- name: Inno Setup 打包
193+
if: matrix.platform == 'windows'
194+
run: |
176195
echo "开始 Inno Setup 打包..."
177196
178197
# 确保构建输出目录存在

0 commit comments

Comments
 (0)