Skip to content

Commit 8478fa5

Browse files
committed
ci: auto-download Inno Setup Chinese language file
1 parent 5eb978e commit 8478fa5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,23 @@ jobs:
6464
6565
Write-Host "Using Inno Setup compiler: $isccPath"
6666
67+
$innoDir = Split-Path -Path $isccPath -Parent
68+
$langDir = Join-Path $innoDir "Languages"
69+
$chineseSimplifiedPath = Join-Path $langDir "ChineseSimplified.isl"
70+
$chineseSimplifiedUrl = "https://raw.githubusercontent.com/jrsoftware/issrc/refs/heads/main/Files/Languages/Unofficial/ChineseSimplified.isl"
71+
72+
if (-not (Test-Path $langDir)) {
73+
New-Item -ItemType Directory -Path $langDir -Force | Out-Null
74+
}
75+
76+
if (-not (Test-Path $chineseSimplifiedPath)) {
77+
Write-Host "ChineseSimplified.isl not found. Downloading from: $chineseSimplifiedUrl"
78+
Invoke-WebRequest -Uri $chineseSimplifiedUrl -OutFile $chineseSimplifiedPath -ErrorAction Stop
79+
Write-Host "Downloaded language file to: $chineseSimplifiedPath"
80+
} else {
81+
Write-Host "Language file already exists: $chineseSimplifiedPath"
82+
}
83+
6784
- uses: ToQuery/wails3-build-action@v3-alpha.14
6885
with:
6986
go-archs: ${{ matrix.build.archs }}

0 commit comments

Comments
 (0)