Skip to content

Commit

Permalink
moved installer to different github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurDeclercq committed Sep 28, 2023
1 parent 1c54e54 commit 51c54eb
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 41 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,43 +42,3 @@ jobs:
- name: Test installation
run: |
ms2rescore --help
windows-installer:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
pip install . pyinstaller
- name: Install Inno Setup
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install innosetup -y --allow-unofficial --force

- name: Run pyinstaller
run: pyinstaller ./ms2rescore.spec --clean --noconfirm

- name: Test built exe
run: dist/ms2rescore/ms2rescore.exe

- name: Run Inno Setup
run: ISCC.exe ./ms2rescore_innosetup.iss /DMyAppVersion=$(ms2rescore -v)

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*.exe

- name: Upload installer to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file_glob: true
file: dist/*.exe
31 changes: 31 additions & 0 deletions .github/workflows/windows_installer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
pull_request:
branches:
- main

windows-installer:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
pip install . pyinstaller
- name: Install Inno Setup
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install innosetup -y --allow-unofficial --force

- name: Run pyinstaller
run: pyinstaller ./ms2rescore.spec --clean --noconfirm

- name: Test built exe
run: dist/ms2rescore/ms2rescore.exe

- name: Run Inno Setup
run: ISCC.exe ./ms2rescore_innosetup.iss /DMyAppVersion=$(ms2rescore -v)
2 changes: 1 addition & 1 deletion ms2rescore_innosetup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define MyAppExeName "ms2rescore.exe"

[Setup]
AppId={{2D3D12BD-3AE2-426E-8DE8-092148C12071}
AppId={2D3D12BD-3AE2-426E-8DE8-092148C12071}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
Expand Down

0 comments on commit 51c54eb

Please sign in to comment.