-
-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (39 loc) · 1.16 KB
/
build_gui_windows.yml
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
40
41
42
43
44
45
name: Build GUI (Windows x64)
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build-pornfetch-gui-windows-x64:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.11 x64
uses: actions/setup-python@v2
with:
python-version: 3.11
architecture: x64
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install virtualenv
virtualenv venv
.\venv\Scripts\activate
pip install -r requirements.txt
pip install PySide6 nuitka zstandard
- name: Build application for Windows x64
run: |
mkdir deploy
Get-ChildItem -Path . -Exclude deploy,venv | Move-Item -Destination deploy
cd deploy
..\venv\Scripts\activate
echo "yes" | pyside6-deploy -c src/build/pysidedeploy_windows.spec main.py
- name: Archive Windows x64 build
uses: actions/upload-artifact@v4
with:
name: pyside6-application-windows-x64
path: deploy/main.exe