-
-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy path.appveyor.yml
More file actions
92 lines (78 loc) · 2.37 KB
/
.appveyor.yml
File metadata and controls
92 lines (78 loc) · 2.37 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "{build}"
image: Visual Studio 2022
branches:
only:
- main
skip_tags: false
environment:
QT_VERSION: 6.9.3
QT_ARCH: win64_mingw
QT_ROOT: C:\Qt
INNO_DIR: C:\Program Files (x86)\Inno Setup 6
install:
- choco install -y innosetup
- py -3 -m pip install --upgrade pip
- py -3 -m pip install aqtinstall
- if not exist %QT_ROOT% mkdir %QT_ROOT%
- set PATH=C:\Python314-x64\Scripts;%PATH%
- py -3 -m aqt install-qt windows desktop %QT_VERSION% %QT_ARCH% -O %QT_ROOT%
- py -3 -m aqt install-tool -O %QT_ROOT% windows desktop tools_mingw1310
- set QTDIR=%QT_ROOT%\%QT_VERSION%\mingw_64
- set MINGW_ROOT=%QT_ROOT%\Tools\mingw1310_64
- set PATH=%QTDIR%\bin;%MINGW_ROOT%\bin;%INNO_DIR%;%PATH%
- echo ==== PATH ====
- echo %PATH%
- echo ==== QT TREE ====
- dir %QT_ROOT%
- dir %QT_ROOT%\%QT_VERSION%
- dir %QTDIR%
- dir %QTDIR%\bin
- dir %QT_ROOT%\Tools
- dir %MINGW_ROOT%
- dir %MINGW_ROOT%\bin
- echo ==== TOOL RESOLUTION ====
- where qmake
- where mingw32-make
- where gcc
- where g++
- where ld
- where windres
- where windeployqt
- where iscc
- echo ==== TOOL VERSIONS ====
- qmake -v
- gcc --version
- g++ --version
- ld --version
- echo ==== SANITY C BUILD ====
- echo int main(void){return 0;} > sanity.c
- gcc sanity.c -o sanity.exe
- if not exist sanity.exe exit /b 1
build_script:
- qmake qtpass.pro CONFIG+=release
- mingw32-make V=1
- if exist dist rmdir /s /q dist
- mkdir dist\qtpass
- if exist main\release\qtpass.exe (copy main\release\qtpass.exe dist\qtpass\qtpass.exe) else (copy src\release\qtpass.exe dist\qtpass\qtpass.exe)
- if not exist dist\qtpass\qtpass.exe exit /b 1
- windeployqt --release --dir dist\qtpass dist\qtpass\qtpass.exe
- copy README.md dist\qtpass\README.txt
- copy LICENSE dist\qtpass\LICENSE.txt
- if not exist dist\qtpass\README.txt exit /b 1
- if not exist dist\qtpass\LICENSE.txt exit /b 1
- dir dist\qtpass
- if "%APPVEYOR_REPO_TAG%"=="true" (iscc /DMyAppVersion=%APPVEYOR_REPO_TAG_NAME% qtpass.iss) else (iscc qtpass.iss)
artifacts:
- path: Output\qtpass-*.exe
name: installer
- path: dist\qtpass\qtpass.exe
name: binary
deploy:
- provider: GitHub
auth_token:
secure: YfscG1DR0+kApThPXxQSr+ZEjUOUlIG0Tqc5+90IFsUInyICRRMdbJsbxR2qhq/p
artifact: installer
draft: true
prerelease: false
on:
APPVEYOR_REPO_TAG: true