Skip to content

Commit

Permalink
[workflow] fix: add Inno Setup language file
Browse files Browse the repository at this point in the history
  • Loading branch information
ifTNT committed Jul 4, 2024
1 parent ef6209c commit 68f170f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-win-installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,43 @@ jobs:
build:
name: Build the Inno Setup Installer
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- uses: actions/checkout@v4

- name: Install Language
run: |
$baseUri = 'https://raw.github.com/jrsoftware/issrc/main/Files'
$downloadDir = "$env:ProgramFiles(x86)/Inno Setup 6/Languages"
$files = @(
@{
Uri = "$baseUri/Languages/Unofficial/ChineseTraditional.isl"
OutFile = "$downloadDir/ChineseTraditional.isl"
},
@{
Uri = "$baseUri/Languages/Unofficial/ChineseSimplified.isl"
OutFile = "$downloadDir/ChineseTraditional.isl"
},
)
$jobs = @()
foreach ($file in $files) {
$jobs += Start-ThreadJob -Name $file.OutFile -ScriptBlock {
$params = $using:file
Invoke-WebRequest @params
}
}
Write-Host "Downloads started..."
Wait-Job -Job $jobs
foreach ($job in $jobs) {
Receive-Job -Job $job
}
- name: Compile .ISS to .EXE Installer
uses: Minionguyjpro/[email protected]
with:
Expand Down

0 comments on commit 68f170f

Please sign in to comment.