Create file_scanner.py #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Windows Installer | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
pip install -r requirements.txt # If you have dependencies | |
- name: Build executable with PyInstaller | |
run: pyinstaller --onefile your_script.py | |
- name: Install Inno Setup | |
run: choco install innosetup # Using Chocolatey package manager | |
- name: Create installer | |
run: iscc installer_script.iss # Your Inno Setup script | |
- name: Upload installer | |
uses: actions/upload-artifact@v3 | |
with: | |
name: windows-installer | |
path: dist/*.exe |