Skip to content

Commit 74a49da

Browse files
authored
Merge pull request #702 from mathoudebine/dev/add-windows-portable-package
2 parents 68ed884 + a8108e9 commit 74a49da

File tree

2 files changed

+46
-8
lines changed

2 files changed

+46
-8
lines changed

.github/workflows/generate-windows-installer-debug.yml renamed to .github/workflows/generate-windows-packages-debug.yml

+23-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generate Windows Installer (Debug)
1+
name: Generate Windows Packages (Debug)
22

33
on:
44
release:
@@ -9,7 +9,7 @@ permissions:
99

1010
jobs:
1111
generate-windows-installer:
12-
name: Generate Windows Installer (Debug)
12+
name: Generate Windows Packages (Debug)
1313
runs-on: windows-latest
1414

1515
steps:
@@ -33,22 +33,41 @@ jobs:
3333
- name: Run PyInstaller to create binaries
3434
run: |
3535
pyinstaller.exe --noconfirm turing-system-monitor-debug.spec
36+
"${{github.event.release.tag_name}}-debug" | Out-File ".\dist\turing-system-monitor\version.txt"
3637
3738
- name: Create InnoSetup installer from generated binaries
3839
uses: Minionguyjpro/[email protected]
3940
with:
4041
path: tools/windows-installer/turing-system-monitor.iss
4142
options: /O+
4243

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+
4349
- name: '📦 Archive Windows installer'
4450
uses: actions/upload-artifact@v4
4551
with:
46-
name: turing-system-monitor_${{github.event.release.tag_name}}
52+
name: turing-system-monitor-${{github.event.release.tag_name}}-debug
4753
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug.exe
4854
if-no-files-found: error
4955

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+
5063
- name: '📩 Publish Windows installer to Release'
5164
run: |
5265
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug.exe
5366
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 }}

.github/workflows/generate-windows-installer.yml renamed to .github/workflows/generate-windows-packages.yml

+23-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generate Windows Installer
1+
name: Generate Windows Packages
22

33
on:
44
release:
@@ -9,7 +9,7 @@ permissions:
99

1010
jobs:
1111
generate-windows-installer:
12-
name: Generate Windows Installer
12+
name: Generate Windows Packages
1313
runs-on: windows-latest
1414

1515
steps:
@@ -33,22 +33,41 @@ jobs:
3333
- name: Run PyInstaller to create binaries
3434
run: |
3535
pyinstaller.exe --noconfirm turing-system-monitor.spec
36+
"${{github.event.release.tag_name}}" | Out-File ".\dist\turing-system-monitor\version.txt"
3637
3738
- name: Create InnoSetup installer from generated binaries
3839
uses: Minionguyjpro/[email protected]
3940
with:
4041
path: tools/windows-installer/turing-system-monitor.iss
4142
options: /O+
4243

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.zip ".\dist\turing-system-monitor"
48+
4349
- name: '📦 Archive Windows installer'
4450
uses: actions/upload-artifact@v4
4551
with:
46-
name: turing-system-monitor_${{github.event.release.tag_name}}
52+
name: turing-system-monitor-${{github.event.release.tag_name}}
4753
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}.exe
4854
if-no-files-found: error
4955

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
60+
path: turing-system-monitor-${{github.event.release.tag_name}}-portable.zip
61+
if-no-files-found: error
62+
5063
- name: '📩 Publish Windows installer to Release'
5164
run: |
5265
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}.exe
5366
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.zip
72+
env:
73+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)