-
Notifications
You must be signed in to change notification settings - Fork 205
78 lines (65 loc) · 2.79 KB
/
windows_release_build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build Signed Windows Release
on: push
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
# Use 3.12 - 3.13 not working yet (Numpy verion too old)
- uses: actions/setup-python@v5
with:
python-version: 3.12
# Use GH python version (includes TK/TCL)
- name: Set up Python using GH python version
run: uv venv --python 3.12 --python-preference only-system
- name: Install the project
run: uv sync
- name: Build Desktop App, including custom build of pyinstaller bootloader
run: uv run bash ./app/desktop/build_desktop_app.sh --build-bootloader
- name: Sign internal files with Trusted Signing
uses: azure/[email protected]
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
endpoint: https://eus.codesigning.azure.net/
trusted-signing-account-name: Kiln-Steve-Signing
certificate-profile-name: Kiln-AI-Signing
files-folder: ${{ github.workspace }}/app/desktop/build/dist
files-folder-recurse: true
files-folder-filter: exe
# TODO: consider signing dlls as well. But for testing, we don't want to use all our quota.
# files-folder-filter: exe,dll
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256
- name: Build Windows Installer
uses: Minionguyjpro/[email protected]
with:
path: ./app/desktop/WinInnoSetup.iss
- name: Sign Windows Installer exe
uses: azure/[email protected]
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
endpoint: https://eus.codesigning.azure.net/
trusted-signing-account-name: Kiln-Steve-Signing
certificate-profile-name: Kiln-AI-Signing
files-folder: ${{ github.workspace }}/app/desktop/Output
files-folder-recurse: true
files-folder-filter: kilnsetup.exe
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256
- name: Copy Windows Installer
run: cp ./app/desktop/Output/kilnsetup.exe ./app/desktop/build/dist/Kiln.Windows.Installer.exe
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: kiln-desktop-windows-signed-installer
path: ./app/desktop/build/dist/*