Skip to content

Commit 7160a23

Browse files
committed
.
1 parent a2a80f1 commit 7160a23

File tree

4 files changed

+5
-241
lines changed

4 files changed

+5
-241
lines changed
Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
on:
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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ CLAUDE.md
1010
/docs
1111
/venv
1212
OPENROUTER_INTEGRATION_PLAN.md
13+
build_installer.bat
14+
build/

INSTALLER_INFO.txt

Lines changed: 0 additions & 73 deletions
This file was deleted.

installer.iss

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)