Skip to content

Commit

Permalink
Add Windows installer
Browse files Browse the repository at this point in the history
  • Loading branch information
bavodenys authored Jan 21, 2024
1 parent a92641e commit cb62fa9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
path: dist/main

build-windows:
runs-on: windows-latest # Use a Windows runner for this job
runs-on: windows-latest

steps:
- name: Checkout code
Expand All @@ -52,8 +52,18 @@ jobs:
flet pack main.py
deactivate # Deactivate the virtual environment
- name: Download and Install NSIS
run: |
mkdir -p $HOME/nsis
Invoke-WebRequest -Uri 'https://prdownloads.sourceforge.net/nsis/nsis-3.06.1-setup.exe' -OutFile $HOME/nsis/nsis-setup.exe
Start-Process -Wait -FilePath $HOME/nsis/nsis-setup.exe -ArgumentList '/S'
- name: Compile NSIS Script
run: |
& 'C:\Program Files (x86)\NSIS\makensis.exe' installer_files/windows_installer.nsi
- name: Publish Artifact for Windows
uses: actions/upload-artifact@v2
with:
name: Bike maintenance tool - Windows
path: dist/main.exe
name: Bike maintenance tool - Windows Installer
path: .

0 comments on commit cb62fa9

Please sign in to comment.