-
-
Notifications
You must be signed in to change notification settings - Fork 152
65 lines (63 loc) · 2.12 KB
/
windows.yml
File metadata and controls
65 lines (63 loc) · 2.12 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
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
name: Windows
on:
push:
branches:
- master
jobs:
build:
name: GPXSee
strategy:
matrix:
include:
- arch: x64
os: windows-2022
- arch: arm64
os: windows-11-arm
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.10.2'
modules: qtpositioning qtserialport qtimageformats qtmultimedia
- name: Set up Visual Studio shell
uses: egor-tensin/vs-shell@v2
with:
arch: ${{matrix.arch}}
- name: Create localization
run: lrelease-pro gpxsee.pro
- name: Configure build
run: qmake gpxsee.pro
- name: Build project
run: nmake release
- name: Create installer
run: |
md installer
copy release\GPXSee.exe installer
windeployqt --exclude-plugins qsqlibase,qsqlmimer,qsqloci,qsqlodbc,qsqlpsql --release installer\GPXSee.exe
copy pkg\windows\gpxsee64.nsi installer
xcopy data\CRS installer\CRS /i
xcopy data\maps installer\maps /i
xcopy data\style installer\style /s /i
xcopy lang\*.qm installer\translations\ /sy
xcopy icons\symbols installer\symbols /i
copy licence.txt installer
makensis /D${{matrix.arch}} installer\gpxsee64.nsi
- name: Code Signing
env:
CERTIFICATE: ${{secrets.CERTIFICATE}}
CERTIFICATE_PWD: ${{secrets.CERTIFICATE_PWD}}
if: env.CERTIFICATE
run: |
md certificate
echo "$env:CERTIFICATE" > certificate\certificate.txt
certutil -decode certificate\certificate.txt certificate\certificate.pfx
signtool sign /f certificate\certificate.pfx /fd SHA256 /p "$env:CERTIFICATE_PWD" /tr "http://timestamp.acs.microsoft.com" /td SHA256 installer\GPXSee-*.exe
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
path: installer/GPXSee-*.exe
name: GPXSee_${{matrix.arch}}.exe
archive: false