@@ -2,6 +2,10 @@ name: Build Packages
22
33on :
44 push :
5+ branches :
6+ - master
7+ tags :
8+ - ' *'
59 paths-ignore :
610 - ' docs/**'
711 - ' **.md'
2226 SENTRY_PROJECT : tiled
2327 TILED_RELEASE : ${{ startsWith(github.ref, 'refs/tags/v') }}
2428 TILED_SNAPSHOT : ${{ !startsWith(github.ref, 'refs/tags/v') }}
29+ SIGNING_ENABLED : ${{ secrets.SIGNING_ENABLED }}
2530
2631jobs :
2732 version :
@@ -49,14 +54,14 @@ jobs:
4954
5055 steps :
5156 - name : Checkout repository
52- uses : actions/checkout@v4
57+ uses : actions/checkout@v6
5358
5459 - name : Checkout qaseprite
55- uses : actions/checkout@v4
60+ uses : actions/checkout@v6
5661 with :
5762 repository : mapeditor/qaseprite
5863 path : qaseprite
59- ref : ' 1.0.1 '
64+ ref : ' 1.0.3 '
6065
6166 - name : Install dependencies
6267 run : |
7580 - name : Install Qt
7681 uses : jurplel/install-qt-action@v4
7782 with :
78- version : 6.8.2
83+ version : 6.9.3
7984 arch : linux_gcc_64
8085 modules : " qtimageformats"
8186 tools : ' tools_qtcreator'
@@ -146,13 +151,10 @@ jobs:
146151 export OUTPUT=Tiled-${{ needs.version.outputs.version }}_Linux_x86_64.AppImage
147152 # Avoid shipping the debug information
148153 find AppDir -name \*.debug -delete
149- ./linuxdeploy-x86_64.AppImage --appdir AppDir --custom-apprun=dist/linux/AppRun --exclude-library "*libpython3*" --plugin qt
150- # We don't need the bearer plugins (needed for Qt 5 only)
151- rm -rfv AppDir/usr/plugins/bearer
152- ./linuxdeploy-x86_64.AppImage --appdir AppDir --custom-apprun=dist/linux/AppRun --exclude-library "*libpython3*" --output appimage
154+ ./linuxdeploy-x86_64.AppImage --appdir AppDir --custom-apprun=dist/linux/AppRun --exclude-library "*libpython3*" --plugin qt --output appimage
153155
154156 - name : Upload Tiled.AppImage
155- uses : actions/upload-artifact@v4
157+ uses : actions/upload-artifact@v5
156158 with :
157159 name : Tiled-${{ needs.version.outputs.version }}_Linux_x86_64.AppImage
158160 path : Tiled-${{ needs.version.outputs.version }}_Linux_x86_64.AppImage
@@ -167,7 +169,7 @@ jobs:
167169
168170 steps :
169171 - name : Checkout repository
170- uses : actions/checkout@v4
172+ uses : actions/checkout@v6
171173 with :
172174 fetch-depth : 0
173175
@@ -182,7 +184,7 @@ jobs:
182184 uses : snapcore/action-build@v1
183185
184186 - name : Upload snap artifact
185- uses : actions/upload-artifact@v4
187+ uses : actions/upload-artifact@v5
186188 with :
187189 name : tiled_amd64.snap
188190 path : tiled_*_amd64.snap
@@ -209,7 +211,7 @@ jobs:
209211 version_suffix : " 10.13-10.15"
210212 architectures : x86_64
211213 cmake_architectures : x86_64
212- - qt_version : 6.8.2
214+ - qt_version : 6.9.3
213215 qt_modules : " qtimageformats"
214216 version_suffix : " 11+"
215217 architectures : x86_64,arm64
@@ -220,14 +222,14 @@ jobs:
220222
221223 steps :
222224 - name : Checkout repository
223- uses : actions/checkout@v4
225+ uses : actions/checkout@v6
224226
225227 - name : Checkout qaseprite
226- uses : actions/checkout@v4
228+ uses : actions/checkout@v6
227229 with :
228230 repository : mapeditor/qaseprite
229231 path : qaseprite
230- ref : ' 1.0.1 '
232+ ref : ' 1.0.3 '
231233
232234 - name : Install Qt
233235 uses : jurplel/install-qt-action@v4
@@ -244,11 +246,15 @@ jobs:
244246
245247 - name : Setup Qbs
246248 run : |
249+ brew update
247250 brew install qbs
251+ export PATH="$(brew --prefix qbs)/bin:$PATH"
252+ echo "$(brew --prefix qbs)/bin" >> "$GITHUB_PATH"
253+ qbs --version
248254 qbs setup-toolchains --detect
249255 qbs setup-qt --detect
250- qbs config profiles.qt-6-8-2 .baseProfile xcode
251- qbs config defaultProfile qt-6-8-2
256+ qbs config profiles.qt-6-9-3 .baseProfile xcode
257+ qbs config defaultProfile qt-6-9-3
252258
253259 - name : Build Zstandard
254260 run : |
@@ -284,14 +290,14 @@ jobs:
284290
285291 - name : Create Certificate File
286292 id : certificateFile
287- if : github.repository == 'mapeditor/tiled' && github.event_name == 'push '
293+ if : env.SIGNING_ENABLED == 'true '
288294 uses : timheuer/base64-to-file@v1
289295 with :
290296 fileName : ' certificate.p12'
291297 encodedString : ${{ secrets.MACOS_CERTIFICATE }}
292298
293299 - name : Import Certificate
294- if : github.repository == 'mapeditor/tiled' && github.event_name == 'push '
300+ if : env.SIGNING_ENABLED == 'true '
295301 run : |
296302 security create-keychain -p ${{ secrets.KEYCHAIN_PWD }} mapeditor/tiled
297303 security default-keychain -s mapeditor/tiled
@@ -300,9 +306,9 @@ jobs:
300306 security set-key-partition-list -S 'apple-tool:,apple:' -s -k ${{ secrets.KEYCHAIN_PWD }} mapeditor/tiled
301307
302308 - name : Sign, Notarize & Staple
303- if : github.repository == 'mapeditor/tiled' && github.event_name == 'push '
309+ if : env.SIGNING_ENABLED == 'true '
304310 run : |
305- codesign --deep --force --verify --verbose --sign Lindeijer --options runtime install/Tiled.app
311+ codesign --deep --force --verify --verbose --sign Lindeijer --options runtime --entitlements src/tiledapp/app.entitlements install/Tiled.app
306312 ditto -c -k --sequesterRsrc --keepParent install/Tiled.app Tiled_for_notarization.zip
307313 xcrun notarytool submit --apple-id ${{ secrets.NOTARIZATION_USERNAME }} --password ${{ secrets.NOTARIZATION_PASSWORD }} --team-id ${{ secrets.NOTARIZATION_TEAM }} --wait Tiled_for_notarization.zip
308314 xcrun stapler staple install/Tiled.app
@@ -312,7 +318,7 @@ jobs:
312318 ditto -c -k --sequesterRsrc --keepParent install/Tiled.app Tiled-${{ needs.version.outputs.version }}_macOS-${{ matrix.version_suffix }}.zip
313319
314320 - name : Upload Tiled.app
315- uses : actions/upload-artifact@v4
321+ uses : actions/upload-artifact@v5
316322 with :
317323 name : Tiled-${{ needs.version.outputs.version }}_macOS-${{ matrix.version_suffix }}.app
318324 path : Tiled-${{ needs.version.outputs.version }}_macOS-${{ matrix.version_suffix }}.zip
@@ -335,7 +341,7 @@ jobs:
335341 mingw_component : tools_mingw
336342 mingw_variant : qt.tools.win32_mingw810
337343 mingw_dir : mingw810_32
338- - qt_version : 6.8.2
344+ - qt_version : 6.9.3
339345 qt_version_major : 6
340346 qt_arch : win64_mingw
341347 qt_modules : " qtimageformats"
@@ -355,14 +361,14 @@ jobs:
355361
356362 steps :
357363 - name : Checkout repository
358- uses : actions/checkout@v4
364+ uses : actions/checkout@v6
359365
360366 - name : Checkout qaseprite
361- uses : actions/checkout@v4
367+ uses : actions/checkout@v6
362368 with :
363369 repository : mapeditor/qaseprite
364370 path : qaseprite
365- ref : ' 1.0.1 '
371+ ref : ' 1.0.3 '
366372
367373 - name : Install Qt
368374 uses : jurplel/install-qt-action@v4
@@ -420,13 +426,13 @@ jobs:
420426 mv release/installer*/Tiled-*.msi ./Tiled-${{ needs.version.outputs.version }}_${{ matrix.filename_suffix }}.msi
421427
422428 - name : Upload Tiled installer
423- uses : actions/upload-artifact@v4
429+ uses : actions/upload-artifact@v5
424430 with :
425431 name : Tiled-${{ needs.version.outputs.version }}_${{ matrix.filename_suffix }}.msi
426432 path : Tiled-${{ needs.version.outputs.version }}_*.msi
427433
428434 - name : Upload Tiled archive
429- uses : actions/upload-artifact@v4
435+ uses : actions/upload-artifact@v5
430436 with :
431437 name : Tiled-${{ needs.version.outputs.version }}_${{ matrix.filename_suffix }}.zip
432438 path : release/install-root/*
@@ -442,7 +448,7 @@ jobs:
442448
443449 steps :
444450 - name : Download all artifacts
445- uses : actions/download-artifact@v4
451+ uses : actions/download-artifact@v6
446452
447453 - name : Create release
448454 id : create_release
@@ -467,7 +473,7 @@ jobs:
467473
468474 steps :
469475 - name : Checkout repository
470- uses : actions/checkout@v4
476+ uses : actions/checkout@v6
471477 with :
472478 fetch-depth : 0
473479
0 commit comments