Skip to content

Commit 9662dea

Browse files
authored
Create build.yml
0 parents  commit 9662dea

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/blank.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build Windows Installer
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: windows-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Set up Python
9+
uses: actions/setup-python@v4
10+
with:
11+
python-version: '3.x'
12+
- name: Install dependencies
13+
run: |
14+
python -m pip install --upgrade pip
15+
pip install pyinstaller
16+
pip install -r requirements.txt # If you have dependencies
17+
- name: Build executable with PyInstaller
18+
run: pyinstaller --onefile your_script.py
19+
- name: Install Inno Setup
20+
run: choco install innosetup # Using Chocolatey package manager
21+
- name: Create installer
22+
run: iscc installer_script.iss # Your Inno Setup script
23+
- name: Upload installer
24+
uses: actions/upload-artifact@v3
25+
with:
26+
name: windows-installer
27+
path: dist/*.exe

0 commit comments

Comments
 (0)