From cb70069dd03de27329145b4741df275ad03f145a Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Fri, 23 Oct 2026 23:29:12 +0300
Subject: [PATCH 31/31] 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 fbbeed0727..6d098d9c44 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -73,6 +73,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.4 \
+            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

