Skip to content

Commit 7cf120b

Browse files
committed
pyinstaller
1 parent ec01a53 commit 7cf120b

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/pyinstaller.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build Executable with PyInstaller
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: windows-latest # Use Windows runner to build a .exe file
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.12' # Specify your Python version
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
29+
- name: Build executable with PyInstaller
30+
run: pyinstaller --onefile assetsBrowser.py # Adjust your script name
31+
32+
- name: Archive the build artifact
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: executable
36+
path: dist/assetsBrowser.exe # Adjust to match the output executable name
37+

0 commit comments

Comments
 (0)