forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
127 lines (116 loc) · 4.29 KB
/
appveyor.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
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
clone_depth: 200
version: '1.11.{build}'
image:
- Visual Studio 2022
cache:
- C:\Users\appveyor\.m2
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
environment:
BUTLER_API_KEY:
secure: j7JM5L6KeqpnQukzJLsm7J6oV92SpmyEZLSoED1pZ3gQ79VIkdxtbQmTkqUNZPsz
matrix:
- QTDIR: C:\Qt\6.8\msvc2022_64
PYTHONHOME: C:\Python312-x64
DEFAULT_PROFILE: MSVC2022-x64
PUSH_RELEASE: false
ENABLE_ZSTD: false
- QTDIR: C:\Qt\6.8\mingw_64
PYTHONHOME: C:\Python312-x64
MINGW: C:\Qt\Tools\mingw1310_64
DEFAULT_PROFILE: x86_64-w64-mingw32-gcc-13_1_0
PUSH_RELEASE: true
ENABLE_ZSTD: true
CC: x86_64-w64-mingw32-gcc.exe
CXX: x86_64-w64-mingw32-g++.exe
- QTDIR: C:\Qt\5.15\mingw81_32
PYTHONHOME: C:\Python38
MINGW: C:\Qt\Tools\mingw810_32
DEFAULT_PROFILE: i686-w64-mingw32-gcc-8_1_0
PUSH_RELEASE: true
ENABLE_ZSTD: true
CC: i686-w64-mingw32-gcc.exe
CXX: i686-w64-mingw32-g++.exe
configuration: Release
install:
- choco install -y qbs --version 2.4.1
- nuget install secure-file -ExcludeVersion
- set PATH=%PATH%;%QTDIR%\bin;%MINGW%\bin
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 https://github.com/mapeditor/qaseprite.git
- cd qaseprite
- cd aseprite
- patch -p1 < ..\aseprite-msvc-dynamic-runtime.patch
- cd 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 --version
- qbs setup-toolchains --detect
- qbs config defaultProfile %DEFAULT_PROFILE%
- qbs build config:release projects.Tiled.windowsInstaller:true projects.Tiled.staticZstd:%ENABLE_ZSTD%
- cd util\java
- mvn --version
- mvn clean install
- cd ..\..
after_build:
- cd release
- cd installer*
- move tiled-*.msi %APPVEYOR_BUILD_FOLDER%
- 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