Skip to content

Commit 211d2b1

Browse files
committed
Add Windows portable package
1 parent 3a7c35b commit 211d2b1

File tree

2 files changed

+45
-7
lines changed

2 files changed

+45
-7
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:
@@ -40,15 +40,34 @@ jobs:
4040
path: tools/windows-installer/turing-system-monitor.iss
4141
options: /O+
4242

43+
- name: Create portable zip archive from generated binaries
44+
run: |
45+
rm -rf "res/themes/--Theme examples"
46+
mv dist/turing-system-monitor dist/turing-system-monitor-${{github.event.release.tag_name}}-debug
47+
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip dist/turing-system-monitor-${{github.event.release.tag_name}}-debug
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}} tools\windows-installer\Output\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

+22-3
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:
@@ -40,15 +40,34 @@ jobs:
4040
path: tools/windows-installer/turing-system-monitor.iss
4141
options: /O+
4242

43+
- name: Create portable zip archive from generated binaries
44+
run: |
45+
rm -rf "res/themes/--Theme examples"
46+
mv dist/turing-system-monitor dist/turing-system-monitor-${{github.event.release.tag_name}}
47+
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable.zip dist/turing-system-monitor-${{github.event.release.tag_name}}
48+
4349
- name: '📦 Archive Windows installer'
4450
uses: actions/upload-artifact@v4
4551
with:
4652
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}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-portable.zip
72+
env:
73+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)