Skip to content

Commit 2fe8adb

Browse files
authored
Merge pull request #640 from mathoudebine/feature/116-create-an-installer-for-windows
2 parents 2fcdeb1 + 9fd0327 commit 2fe8adb

33 files changed

+20594
-16
lines changed

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212

1313
jobs:
1414
dependency-review:
15+
name: 'Dependency Review'
1516
runs-on: ubuntu-latest
1617
steps:
1718
- name: 'Checkout Repository'
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Generate Windows Installer
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
generate-windows-installer:
12+
name: Generate Windows Installer
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Git Checkout ${{github.event.release.tag_name}}
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.13'
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install -r requirements.txt
28+
29+
- name: Set version number for PyInstaller
30+
run: |
31+
python.exe tools\windows-installer\generate-version-info.py ${{github.event.release.tag_name}}
32+
33+
- name: Run PyInstaller to create binaries
34+
run: |
35+
pyinstaller.exe --noconfirm turing-system-monitor.spec
36+
37+
- name: Create InnoSetup installer from generated binaries
38+
uses: Minionguyjpro/[email protected]
39+
with:
40+
path: tools/windows-installer/turing-system-monitor.iss
41+
options: /O+
42+
43+
- name: '📦 Archive Windows installer'
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: turing-system-monitor_${{github.event.release.tag_name}}
47+
path: tools\windows-installer\Output\turing-system-monitor_${{github.event.release.tag_name}}.exe
48+
if-no-files-found: error
49+
50+
- name: '📩 Publish Windows installer to Release'
51+
run: |
52+
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor_${{github.event.release.tag_name}}.exe
53+
env:
54+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint-flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
lint-flake8:
12-
12+
name: Lint with flake8
1313
runs-on: ubuntu-latest
1414

1515
steps:

.github/workflows/simple-program-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
simple-program:
12-
12+
name: Simple program (Linux)
1313
runs-on: ubuntu-latest
1414

1515
strategy:

.github/workflows/simple-program-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
simple-program:
12-
12+
name: Simple program (MacOS)
1313
runs-on: macos-latest
1414

1515
strategy:

.github/workflows/simple-program-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
simple-program:
12-
12+
name: Simple program (Windows)
1313
runs-on: windows-latest
1414

1515
strategy:

.github/workflows/system-monitor-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
system-monitor:
12-
12+
name: System monitor (Linux)
1313
runs-on: ubuntu-latest
1414

1515
strategy:

.github/workflows/system-monitor-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
system-monitor:
12-
12+
name: System monitor (MacOS)
1313
runs-on: macos-latest
1414

1515
strategy:

.github/workflows/system-monitor-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
system-monitor:
12-
12+
name: System monitor (Windows)
1313
runs-on: windows-latest
1414

1515
strategy:

.github/workflows/themes-screenshot-on-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
system-monitor-theme-screenshot:
8-
8+
name: Generate screenshot for all themes
99
runs-on: ubuntu-latest
1010

1111
steps:

0 commit comments

Comments
 (0)