From e79667aed5937489856a1d98a959aca5f3992a44 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Fri, 23 Oct 2026 23:29:12 +0300
Subject: [PATCH 94/94] CI: Add mac-appbundle job

See RM #2391

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 .github/workflows/ci.yml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1c252c5f1d..007843675a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -75,6 +75,28 @@ jobs:
       - name: build
         shell: bash
         run: ./scripts/ci-build.sh mac-meson
+  mac-appbundle:
+    runs-on: xcode-27
+    steps:
+      - name: check out Freeciv
+        uses: actions/checkout@v7.0.1
+      - name: install dependencies
+        run: |
+          # Remove symlinks of the old python version
+          rm /usr/local/bin/2to3*
+          rm /usr/local/bin/idle3*
+          rm /usr/local/bin/pydoc3*
+          rm /usr/local/bin/python3*
+          brew install \
+            dylibbundler \
+            meson \
+            lua@5.5 \
+            gtk4 \
+            gdk-pixbuf \
+            sdl3_mixer
+      - name: build
+        shell: bash
+        run: ./platforms/macos/homebrew-appbundle-gtk4-dmg.sh
   autotools:
     runs-on: ubuntu-26.04
     steps:
-- 
2.53.0

