Skip to content

Commit b13d58c

Browse files
committed
- windows ARM support (1st try)
1 parent d12da2a commit b13d58c

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build GUI (Windows ARM64)
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
push:
7+
branches: [ master ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build-pornfetch-gui-windows-arm64:
14+
runs-on: windows-11-arm
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python 3.13 ARM64
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.13"
23+
architecture: arm64
24+
25+
- name: Install Python dependencies
26+
shell: pwsh
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install virtualenv
30+
virtualenv venv
31+
.\venv\Scripts\activate
32+
pip install -r requirements.txt
33+
pip install PySide6 nuitka zstandard pywin32
34+
.\src\frontend\update.ps1
35+
36+
- name: Build application for Windows ARM64
37+
shell: pwsh
38+
run: |
39+
mkdir deploy
40+
Get-ChildItem -Path . -Exclude deploy,venv | Move-Item -Destination deploy
41+
cd deploy
42+
..\venv\Scripts\activate
43+
echo "yes" | pyside6-deploy -c src/build/pysidedeploy_windows.spec -f -v
44+
45+
- name: Generate SHA256 Checksum
46+
shell: pwsh
47+
run: |
48+
certUtil -hashfile "deploy\Porn Fetch.exe" SHA256 | findstr /v "hashfile CertUtil" > "deploy\PornFetch_Windows_GUI_ARM64.sha256"
49+
50+
- name: Publish SHA256 to GitHub Actions Summary
51+
shell: bash
52+
run: |
53+
echo "### SHA256 Checksum for PornFetch_Windows_GUI_ARM64.exe" >> $GITHUB_STEP_SUMMARY
54+
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
55+
cat "deploy/PornFetch_Windows_GUI_ARM64.sha256" >> $GITHUB_STEP_SUMMARY
56+
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
57+
58+
- name: Archive Windows ARM64 build
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: pyside6-application-windows-arm64
62+
path: "deploy\\Porn Fetch.exe"

0 commit comments

Comments
 (0)