Skip to content

Commit 618384c

Browse files
committed
github workflow
1 parent 21ff85a commit 618384c

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build Windows EXE
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: windows-latest
10+
11+
steps:
12+
- name: Checkout Repo
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.13"
19+
20+
- name: Install dependencies
21+
run: |
22+
pip install -r src/pc_app/requirements.txt
23+
pip install pyinstaller
24+
25+
- name: Run build script
26+
run: src/build_scripts/build.bat
27+
28+
- name: Zip build
29+
run: |
30+
powershell Compress-Archive src/dist/OsciFootswitch OsciFootswitch.zip
31+
32+
- name: Upload release asset
33+
uses: softprops/action-gh-release@v2
34+
with:
35+
files: OsciFootswitch.zip

src/build_scripts/build.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
@echo off
2+
3+
cd /d %~dp0\..\pc_app
4+
25
REM -------- Build OsciFootswitch --------
36
REM 1. Version generieren
47
python generate_version.py

0 commit comments

Comments
 (0)