Skip to content

Lang fixes — Hungarian localisation improvements & figure voice-key p… #1830

Lang fixes — Hungarian localisation improvements & figure voice-key p…

Lang fixes — Hungarian localisation improvements & figure voice-key p… #1830

name: Akhenaten Build Mac
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: run on mac arm64
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install OpenSSL (for curl)
run: brew install openssl@3
- name: Install meson and ninja
run: brew install meson ninja nasm
- name: update-workspace
run: |
export CXXFLAGS=-stdlib=libc++
export OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)
cmake --preset macos-clang-relwithdebinfo-make-arm64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=11.7 \
-DOPTION_SYSTEM_LIBPNG=OFF \
-DOPTION_BUILD_LIBPNG=ON \
-DCMAKE_INSTALL_PREFIX="$PWD/build/install"
- name: build
run: |
cmake --build --preset macos-clang-relwithdebinfo-make-arm64 -- -j$(sysctl -n hw.ncpu)
- name: install-and-bundle
run: |
cmake --build --preset macos-clang-relwithdebinfo-make-arm64 --target install/local
mkdir macos_build
cp -R ./build/install/akhenaten.app ./macos_build/akhenaten.app
if [ -f ./build/akhenaten-updater ]; then
cp ./build/akhenaten-updater ./macos_build/akhenaten.app/Contents/MacOS/akhenaten-updater
cp ./build/akhenaten-updater ./macos_build/akhenaten-updater
chmod +x ./macos_build/akhenaten.app/Contents/MacOS/akhenaten-updater \
./macos_build/akhenaten-updater
fi
# Ship innoextract where SDL_GetBasePath() looks (Resources) and next to the binary.
INNO_SRC=""
if [ -f ./build/tools/innoextract/bin/innoextract ]; then
INNO_SRC=./build/tools/innoextract/bin/innoextract
elif [ -f ./build/innoextract ]; then
INNO_SRC=./build/innoextract
else
curl -fsSL -o /tmp/inno-mac.tar.gz \
"https://github.com/dalerank/innoextract-nb/releases/download/v1.0.0/innoextract-macos-arm64.tar.gz" \
&& tar -xzf /tmp/inno-mac.tar.gz -C /tmp \
&& INNO_SRC=/tmp/innoextract
fi
if [ -n "$INNO_SRC" ] && [ -f "$INNO_SRC" ]; then
mkdir -p ./macos_build/akhenaten.app/Contents/Resources \
./macos_build/akhenaten.app/Contents/MacOS
cp "$INNO_SRC" ./macos_build/akhenaten.app/Contents/Resources/innoextract
cp "$INNO_SRC" ./macos_build/akhenaten.app/Contents/MacOS/innoextract
cp "$INNO_SRC" ./macos_build/innoextract
chmod +x ./macos_build/akhenaten.app/Contents/Resources/innoextract \
./macos_build/akhenaten.app/Contents/MacOS/innoextract \
./macos_build/innoextract
else
echo "::warning::innoextract not bundled (mac arm64 release asset missing?)"
fi
- uses: actions/upload-artifact@v6
with:
name: macos_arm_build
path: macos_build