Skip to content

Commit 8105b56

Browse files
committed
Merge branch 'file-deletion-restoration-handler-system' of https://github.com/djad04/tiled into file-deletion-restoration-handler-system
2 parents 7ea8fcb + 3d6e318 commit 8105b56

File tree

159 files changed

+29156
-1418
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+29156
-1418
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
with:
2929
# We must fetch at least the immediate parents so that if this is
3030
# a pull request then we can checkout the head.
3131
fetch-depth: 2
3232

3333
# Initializes the CodeQL tools for scanning.
3434
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v3
35+
uses: github/codeql-action/init@v4
3636
with:
3737
languages: cpp
3838

@@ -50,4 +50,4 @@ jobs:
5050
run: qbs build
5151

5252
- name: Perform CodeQL Analysis
53-
uses: github/codeql-action/analyze@v3
53+
uses: github/codeql-action/analyze@v4

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout repository
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v6
1313

1414
- name: Build documentation
1515
uses: ammaraskar/sphinx-action@8.2.3
1616
with:
1717
docs-folder: "docs/"
1818

1919
- name: Upload documentation
20-
uses: actions/upload-artifact@v4
20+
uses: actions/upload-artifact@v5
2121
with:
2222
name: Tiled-Manual-HTML
2323
path: docs/_build/html/

.github/workflows/macos-latest.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ name: Compile on latest macOS (Homebrew)
22

33
on:
44
push:
5+
branches:
6+
- master
7+
tags:
8+
- '*'
59
paths-ignore:
610
- 'docs/**'
711
- '**.md'
812
- 'appveyor.yml'
913
- '.travis.yml'
10-
branches-ignore: [snapshot]
1114
pull_request:
1215
paths-ignore:
1316
- 'docs/**'
@@ -22,11 +25,12 @@ jobs:
2225

2326
steps:
2427
- name: Checkout repository
25-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2629

2730
- name: Install dependencies
2831
run: |
29-
brew install qbs
32+
brew update
33+
brew install qbs qttools
3034
3135
- name: Setup Qbs
3236
run: |
@@ -49,7 +53,7 @@ jobs:
4953
popd
5054
5155
- name: Upload artifact
52-
uses: actions/upload-artifact@v4
56+
uses: actions/upload-artifact@v5
5357
with:
5458
name: Tiled.app
5559
path: Tiled-*-macos.zip

.github/workflows/packages.yml

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Build Packages
22

33
on:
44
push:
5+
branches:
6+
- master
7+
tags:
8+
- '*'
59
paths-ignore:
610
- 'docs/**'
711
- '**.md'
@@ -22,6 +26,7 @@ env:
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

2631
jobs:
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: |
@@ -75,7 +80,7 @@ jobs:
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

.github/workflows/ubuntu.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ name: Compile on Ubuntu
22

33
on:
44
push:
5+
branches:
6+
- master
7+
tags:
8+
- '*'
59
paths-ignore:
610
- 'docs/**'
711
- '**.md'
812
- 'appveyor.yml'
913
- '.travis.yml'
10-
branches-ignore: [snapshot]
1114
pull_request:
1215
paths-ignore:
1316
- 'docs/**'
@@ -22,7 +25,7 @@ jobs:
2225

2326
steps:
2427
- name: Checkout repository
25-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2629

2730
- name: Setup ccache
2831
uses: hendrikmuhs/ccache-action@v1
@@ -32,7 +35,7 @@ jobs:
3235
- name: Install dependencies
3336
run: |
3437
sudo apt update
35-
sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev-tools zlib1g-dev qtdeclarative5-dev qbs python3-dev
38+
sudo apt install qtbase5-dev libqt5svg5 qttools5-dev-tools zlib1g-dev qtdeclarative5-dev qbs python3-dev
3639
3740
- name: Setup qbs
3841
run: |

0 commit comments

Comments
 (0)