add build_info.json to workflow for win updater

This commit is contained in:
2025-10-19 15:58:16 +02:00
parent 95a687ddd9
commit 87c974f124
4 changed files with 14 additions and 8 deletions
+5 -1
View File
@@ -66,8 +66,12 @@ jobs:
pip install -r requirements.txt
pip install pyinstaller
- name: Inject commit hash into code
run: |
echo "version = '${GITHUB_SHA}'" > build_info.json
- name: Build executable with PyInstaller
run: pyinstaller --onefile --windowed --name ${{ env.APP_NAME }} main.py
run: pyinstaller --onefile --windowed --add-data "build_info.json:." --name ${{ env.APP_NAME }} main.py
- name: Make executable (Unix)
if: runner.os != 'Windows'