1- # GitHub Actions workflow for building Windows installer
1+ # GitHub Actions workflow for building Windows portable executable
22# Triggers on release creation or manual dispatch
33
4- name : Build Windows Installer
4+ name : Build Windows Executable
55
66on :
77 release :
@@ -168,44 +168,6 @@ jobs:
168168 exit 1
169169 }
170170
171- - name : Update Inno Setup version
172- shell : python
173- run : |
174- version = "${{ steps.version.outputs.version }}"
175- if version == "dev":
176- version = "0.0.0-dev"
177-
178- with open('installer.iss', 'r', encoding='utf-8') as f:
179- content = f.read()
180-
181- content = content.replace(
182- '#define MyAppVersion "1.0.0"',
183- f'#define MyAppVersion "{version}"'
184- )
185-
186- with open('installer.iss', 'w', encoding='utf-8') as f:
187- f.write(content)
188-
189- print(f"Updated installer.iss to version {version}")
190-
191- - name : Build installer with Inno Setup
192- uses : Minionguyjpro/Inno-Setup-Action@v1.2.4
193- with :
194- path : installer.iss
195- options : /O+
196-
197- - name : List output files
198- run : |
199- Write-Host "=== Installer Output ==="
200- Get-ChildItem -Path "installer_output" -Recurse | Format-Table Name, Length, LastWriteTime
201-
202- - name : Upload installer artifact
203- uses : actions/upload-artifact@v4
204- with :
205- name : TranslateBookWithLLM-Installer-${{ steps.version.outputs.version }}
206- path : installer_output/*.exe
207- retention-days : 30
208-
209171 - name : Upload portable executable artifact
210172 uses : actions/upload-artifact@v4
211173 with :
@@ -218,9 +180,7 @@ jobs:
218180 if : github.event_name == 'release'
219181 uses : softprops/action-gh-release@v1
220182 with :
221- files : |
222- installer_output/*.exe
223- dist/TranslateBookWithLLM.exe
183+ files : dist/TranslateBookWithLLM.exe
224184 env :
225185 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
226186
0 commit comments