1
- name : Generate Windows Installer (Debug)
1
+ name : Generate Windows Packages (Debug)
2
2
3
3
on :
4
4
release :
@@ -9,7 +9,7 @@ permissions:
9
9
10
10
jobs :
11
11
generate-windows-installer :
12
- name : Generate Windows Installer (Debug)
12
+ name : Generate Windows Packages (Debug)
13
13
runs-on : windows-latest
14
14
15
15
steps :
@@ -33,22 +33,41 @@ jobs:
33
33
- name : Run PyInstaller to create binaries
34
34
run : |
35
35
pyinstaller.exe --noconfirm turing-system-monitor-debug.spec
36
+ "${{github.event.release.tag_name}}-debug" | Out-File ".\dist\turing-system-monitor\version.txt"
36
37
37
38
- name : Create InnoSetup installer from generated binaries
38
39
uses :
Minionguyjpro/[email protected]
39
40
with :
40
41
path : tools/windows-installer/turing-system-monitor.iss
41
42
options : /O+
42
43
44
+ - name : Create portable zip archive from generated binaries
45
+ run : |
46
+ Remove-Item -r ".\dist\turing-system-monitor\res\themes\--Theme examples\"
47
+ 7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip ".\dist\turing-system-monitor"
48
+
43
49
- name : ' 📦 Archive Windows installer'
44
50
uses : actions/upload-artifact@v4
45
51
with :
46
- name : turing-system-monitor_ ${{github.event.release.tag_name}}
52
+ name : turing-system-monitor- ${{github.event.release.tag_name}}-debug
47
53
path : tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug.exe
48
54
if-no-files-found : error
49
55
56
+ - name : ' 📦 Archive Windows portable archive'
57
+ uses : actions/upload-artifact@v4
58
+ with :
59
+ name : turing-system-monitor-${{github.event.release.tag_name}}-portable-debug
60
+ path : turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip
61
+ if-no-files-found : error
62
+
50
63
- name : ' 📩 Publish Windows installer to Release'
51
64
run : |
52
65
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug.exe
53
66
env :
54
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68
+
69
+ - name : ' 📩 Publish Windows portable zip to Release'
70
+ run : |
71
+ gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip
72
+ env :
73
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments