Skip to content

Dev/add windows portable package #702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate Windows Installer (Debug)
name: Generate Windows Packages (Debug)

on:
release:
Expand All @@ -9,7 +9,7 @@ permissions:

jobs:
generate-windows-installer:
name: Generate Windows Installer (Debug)
name: Generate Windows Packages (Debug)
runs-on: windows-latest

steps:
Expand All @@ -33,22 +33,41 @@ jobs:
- name: Run PyInstaller to create binaries
run: |
pyinstaller.exe --noconfirm turing-system-monitor-debug.spec
"${{github.event.release.tag_name}}-debug" | Out-File ".\dist\turing-system-monitor\version.txt"

- name: Create InnoSetup installer from generated binaries
uses: Minionguyjpro/Inno-Setup-Action@v1.2.5
with:
path: tools/windows-installer/turing-system-monitor.iss
options: /O+

- name: Create portable zip archive from generated binaries
run: |
Remove-Item -r ".\dist\turing-system-monitor\res\themes\--Theme examples\"
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip ".\dist\turing-system-monitor"

- name: '📦 Archive Windows installer'
uses: actions/upload-artifact@v4
with:
name: turing-system-monitor_${{github.event.release.tag_name}}
name: turing-system-monitor-${{github.event.release.tag_name}}-debug
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug.exe
if-no-files-found: error

- name: '📦 Archive Windows portable archive'
uses: actions/upload-artifact@v4
with:
name: turing-system-monitor-${{github.event.release.tag_name}}-portable-debug
path: turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip
if-no-files-found: error

- name: '📩 Publish Windows installer to Release'
run: |
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug.exe
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: '📩 Publish Windows portable zip to Release'
run: |
gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate Windows Installer
name: Generate Windows Packages

on:
release:
Expand All @@ -9,7 +9,7 @@ permissions:

jobs:
generate-windows-installer:
name: Generate Windows Installer
name: Generate Windows Packages
runs-on: windows-latest

steps:
Expand All @@ -33,22 +33,41 @@ jobs:
- name: Run PyInstaller to create binaries
run: |
pyinstaller.exe --noconfirm turing-system-monitor.spec
"${{github.event.release.tag_name}}" | Out-File ".\dist\turing-system-monitor\version.txt"

- name: Create InnoSetup installer from generated binaries
uses: Minionguyjpro/Inno-Setup-Action@v1.2.5
with:
path: tools/windows-installer/turing-system-monitor.iss
options: /O+

- name: Create portable zip archive from generated binaries
run: |
Remove-Item -r ".\dist\turing-system-monitor\res\themes\--Theme examples\"
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable.zip ".\dist\turing-system-monitor"

- name: '📦 Archive Windows installer'
uses: actions/upload-artifact@v4
with:
name: turing-system-monitor_${{github.event.release.tag_name}}
name: turing-system-monitor-${{github.event.release.tag_name}}
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}.exe
if-no-files-found: error

- name: '📦 Archive Windows portable archive'
uses: actions/upload-artifact@v4
with:
name: turing-system-monitor-${{github.event.release.tag_name}}-portable
path: turing-system-monitor-${{github.event.release.tag_name}}-portable.zip
if-no-files-found: error

- name: '📩 Publish Windows installer to Release'
run: |
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}.exe
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: '📩 Publish Windows portable zip to Release'
run: |
gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-portable.zip
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}