-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.11 KB
/
Copy pathpython-publish.yml
File metadata and controls
39 lines (32 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build Windows Executable
on:
push:
branches:
- main
jobs:
build-windows-x86:
name: Windows 32-bit
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download and install Python 3.9.13 (x86)
run: |
Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.9.13/python-3.9.13.exe -OutFile python-installer.exe
Start-Process -FilePath python-installer.exe -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1 Include_test=0 TargetDir="C:\Python39"' -Wait
echo "C:\Python39" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Check Python & pip
run: |
python --version
pip --version
- name: Install dependencies
run: |
pip install pyinstaller pillow
- name: Build executable
run: |
pyinstaller --onefile --noconsole --icon=qy.ico Auto24hStream3.3.py
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: win-x86
path: dist/Auto24hStream3.3.exe