-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathappveyor.yml
More file actions
150 lines (138 loc) · 5.49 KB
/
appveyor.yml
File metadata and controls
150 lines (138 loc) · 5.49 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
clone_depth: 200
version: '1.12.{build}'
image:
- Visual Studio 2022
cache:
- C:\Users\appveyor\.m2
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- C:\Qt\6.10.2\msvc2022_64 -> appveyor.yml
- C:\Qt\5.15.2\mingw81_32 -> appveyor.yml
- C:\Qt\6.10.2\mingw_64 -> appveyor.yml
- C:\Qt\Tools\mingw810_32 -> appveyor.yml
- C:\Qt\Tools\mingw1310_64 -> appveyor.yml
environment:
matrix:
- QT_VERSION: 6.10.2
QT_ARCH: win64_msvc2022_64
QT_MODULES: qtimageformats
QTDIR: C:\Qt\6.10.2\msvc2022_64
PYTHONHOME: C:\Python312-x64
DEFAULT_PROFILE: MSVC2022-x64
FILE_SUFFIX: Windows-10+_msvc_x86_64
PUSH_RELEASE: false
ENABLE_ZSTD: false
- QT_VERSION: 5.15.2
QT_ARCH: win32_mingw81
QT_MODULES:
QTDIR: C:\Qt\5.15.2\mingw81_32
PYTHONHOME: C:\Python312
MINGW: C:\Qt\Tools\mingw810_32
MINGW_COMPONENT: tools_mingw
MINGW_VARIANT: qt.tools.win32_mingw810
FILE_SUFFIX: Windows-7-8_x86
PUSH_RELEASE: true
ENABLE_ZSTD: true
CC: i686-w64-mingw32-gcc.exe
CXX: i686-w64-mingw32-g++.exe
- QT_VERSION: 6.10.2
QT_ARCH: win64_mingw
QT_MODULES: qtimageformats
QTDIR: C:\Qt\6.10.2\mingw_64
PYTHONHOME: C:\Python312-x64
MINGW: C:\Qt\Tools\mingw1310_64
MINGW_COMPONENT: tools_mingw1310
MINGW_VARIANT: qt.tools.win64_mingw1310
FILE_SUFFIX: Windows-10+_x86_64
PUSH_RELEASE: true
ENABLE_ZSTD: true
CC: x86_64-w64-mingw32-gcc.exe
CXX: x86_64-w64-mingw32-g++.exe
configuration: Release
install:
- choco install -y qbs --version 3.1.1
- set PATH=%PYTHONHOME%;%PYTHONHOME%\Scripts;%PATH%
- python -m pip install aqtinstall
- if not exist %QTDIR%\bin\qmake.exe if "%QT_MODULES%"=="" (aqt install-qt -O C:\Qt windows desktop %QT_VERSION% %QT_ARCH%) else (aqt install-qt -O C:\Qt windows desktop %QT_VERSION% %QT_ARCH% -m %QT_MODULES%)
- if defined MINGW if not exist %MINGW%\bin\%CC% aqt install-tool -O C:\Qt windows desktop %MINGW_COMPONENT% %MINGW_VARIANT%
- set PATH=%QTDIR%\bin;%MINGW%\bin;%PATH%
before_build:
- qbs --version
- if defined MINGW qbs setup-toolchains %MINGW%\bin\%CC% mingw
- if defined MINGW qbs config defaultProfile mingw
- if defined DEFAULT_PROFILE qbs setup-toolchains --detect
- if defined DEFAULT_PROFILE qbs config defaultProfile %DEFAULT_PROFILE%
build_script:
- FOR /F "tokens=*" %%i in ('git describe') do SET COMMITNOW=%%i
- if defined APPVEYOR_REPO_TAG_NAME (set TILED_RELEASE=true) else (set TILED_SNAPSHOT=true)
- if defined TILED_RELEASE set TILED_VERSION=%APPVEYOR_REPO_TAG_NAME:~1%
- if defined TILED_SNAPSHOT set TILED_VERSION=%DATE:~10,4%.%DATE:~4,2%.%DATE:~7,2%
- if defined TILED_SNAPSHOT set TILED_MSI_VERSION=%APPVEYOR_BUILD_VERSION%
- if defined MINGW echo Building zstd
- if defined MINGW git clone --depth 1 -b release https://github.com/facebook/zstd.git
- if defined MINGW cd zstd/lib & set CC=gcc & mingw32-make -j2 libzstd.a & cd ../../
- echo Building qaseprite
- git clone --depth 1 --recurse-submodules --shallow-submodules --branch 1.0.3 https://github.com/mapeditor/qaseprite.git
- cd qaseprite\aseprite\laf
- patch -p1 < ..\..\laf-msvc-dynamic-runtime.patch
- cd ..\..
- if defined MINGW cmake -B build -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles"
- if not defined MINGW cmake -B build -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022"
- cmake --build build --config Release
- cmake --install build --config Release
- cd ..
- echo Building Tiled %TILED_VERSION% from %COMMITNOW%
- qbs build config:release projects.Tiled.windowsInstaller:true projects.Tiled.staticZstd:%ENABLE_ZSTD%
- cd util\java
- set JAVA_HOME=C:\Program Files\Java\jdk21
- set PATH=%JAVA_HOME%\bin;%PATH%
- mvn --version
- mvn clean install
- cd ..\..
after_build:
- cd release
- cd installer*
- move tiled-*.msi %APPVEYOR_BUILD_FOLDER%\Tiled-%TILED_VERSION%_%FILE_SUFFIX%.msi
- cd ..
- cd archive*
- move tiled-*.7z %APPVEYOR_BUILD_FOLDER%
- cd ..\..
artifacts:
- name: Installer
path: 'Tiled-*.msi'
- name: Archive
path: 'tiled-*.7z'
deploy:
- provider: FTP
protocol: sftp
host: update.mapeditor.org
username: update
password:
secure: YPoSL+S82PCgS5PYbhtxQv0YD7uwZAX9LhjJBBbDGvk=
folder: update.mapeditor.org/snapshots-win
artifact: /.*\.(msi|7z)/
on:
branch: snapshot
push_release: true
- provider: Webhook
url: https://app.signpath.io/API/v1/670574d6-49bf-4a0c-824a-3ae977077079/Integrations/AppVeyor?ProjectKey=tiled&SigningPolicyKey=test-signing
authorization:
secure: 4E7IuM1Ftvdkx43gsqI3tUWb6tcvrfKB22sa6DsWaBzT+zv3DqceDCk0qc/JqTO+Er5UQNYwolmWBzMdys6fVA==
on:
appveyor_repo_tag: false
branch: master
push_release: true
- provider: Webhook
url: https://app.signpath.io/API/v1/670574d6-49bf-4a0c-824a-3ae977077079/Integrations/AppVeyor?ProjectKey=tiled&SigningPolicyKey=release-signing
authorization:
secure: 4E7IuM1Ftvdkx43gsqI3tUWb6tcvrfKB22sa6DsWaBzT+zv3DqceDCk0qc/JqTO+Er5UQNYwolmWBzMdys6fVA==
on:
branch: snapshot
push_release: true
- provider: Webhook
url: https://app.signpath.io/API/v1/670574d6-49bf-4a0c-824a-3ae977077079/Integrations/AppVeyor?ProjectKey=tiled&SigningPolicyKey=release-signing
authorization:
secure: 4E7IuM1Ftvdkx43gsqI3tUWb6tcvrfKB22sa6DsWaBzT+zv3DqceDCk0qc/JqTO+Er5UQNYwolmWBzMdys6fVA==
on:
appveyor_repo_tag: true
push_release: true