|
46 | 46 | run: |
|
47 | 47 | uv pip install .[win_dist]
|
48 | 48 |
|
| 49 | + - name: Restore Inno Setup installer from cache |
| 50 | + id: cache-innosetup |
| 51 | + uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 |
| 52 | + with: |
| 53 | + path: installer.exe |
| 54 | + key: innosetup-6.5.4-exe |
| 55 | + |
49 | 56 | - name: Download Inno Setup installer
|
50 |
| - run: curl -L -o installer.exe http://files.jrsoftware.org/is/6/innosetup-6.4.3.exe |
| 57 | + if: steps.cache-innosetup.outputs.cache-hit != 'true' |
| 58 | + run: curl -L -o installer.exe http://files.jrsoftware.org/is/6/innosetup-6.5.4.exe |
51 | 59 |
|
52 | 60 | - name: Install Inno Setup
|
53 | 61 | run: ./installer.exe /verysilent /allusers /dir=inst
|
@@ -96,13 +104,26 @@ jobs:
|
96 | 104 | Write-Host "::warning::Running in a fork which may have limited permissions"
|
97 | 105 | }
|
98 | 106 |
|
| 107 | + - name: Restore ChineseSimplified.isl from cache |
| 108 | + id: cache-chinese-isl |
| 109 | + uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 |
| 110 | + with: |
| 111 | + path: ChineseSimplified.isl |
| 112 | + key: chinese-simplified-isl-6.5 |
| 113 | + |
| 114 | + - name: Download ChineseSimplified.isl |
| 115 | + if: steps.cache-chinese-isl.outputs.cache-hit != 'true' |
| 116 | + run: | |
| 117 | + curl -L -o ChineseSimplified.isl https://raw.githubusercontent.com/jrsoftware/issrc/refs/heads/main/Files/Languages/Unofficial/ChineseSimplified.isl |
| 118 | +
|
99 | 119 | - name: Build installer
|
100 | 120 | run: |
|
| 121 | + New-Item -ItemType Directory -Force -Path "inst\Languages" |
| 122 | + Copy-Item "ChineseSimplified.isl" -Destination "inst\Languages\ChineseSimplified.isl" |
101 | 123 | cd windows
|
102 | 124 | $env:VERSION=$(python return_version.py)
|
103 |
| - curl -L -o "c:\program files (x86)\inno setup 6\Languages\ChineseSimplified.isl" https://raw.githubusercontent.com/jrsoftware/issrc/refs/heads/main/Files/Languages/Unofficial/ChineseSimplified.isl |
104 |
| - ISCC.exe /dMyAppVersion=$env:VERSION ardupilot_methodic_configurator.iss |
105 |
| - ls Output |
| 125 | + Start-Process -FilePath "..\inst\ISCC.exe" -ArgumentList "/dMyAppVersion=$env:VERSION", "ardupilot_methodic_configurator.iss" -Wait -NoNewWindow |
| 126 | + Get-ChildItem Output |
106 | 127 |
|
107 | 128 | # https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/generic/README.md
|
108 | 129 | - name: Generate hashes
|
|
0 commit comments