diff --git a/.github/workflows/ReleaseBuilds.yml b/.github/workflows/ReleaseBuilds.yml index 51d66b7..43c5aa8 100644 --- a/.github/workflows/ReleaseBuilds.yml +++ b/.github/workflows/ReleaseBuilds.yml @@ -4,16 +4,20 @@ on: [workflow_dispatch] jobs: build-macos: - runs-on: macos-11 + runs-on: macos-12 timeout-minutes: 15 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: master + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: 13 + - run: bash build-mac-app.sh - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: mac-build path: SpaceCadetPinball-*-mac.dmg diff --git a/CMakeLists.txt b/CMakeLists.txt index cbe114e..fb705ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,7 @@ if(APPLE) set(MACOSX_RPATH) set(CMAKE_BUILD_WITH_INSTALL_RPATH true) set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks") + set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11") set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64") list(APPEND SDL2_PATH "${CMAKE_CURRENT_LIST_DIR}/Libs") list(APPEND SDL2_MIXER_PATH "${CMAKE_CURRENT_LIST_DIR}/Libs") diff --git a/Platform/macOS/Info.plist b/Platform/macOS/Info.plist index 4c2b538..021cd74 100644 --- a/Platform/macOS/Info.plist +++ b/Platform/macOS/Info.plist @@ -28,6 +28,8 @@ CSResourcesFileMapped + LSMinimumSystemVersion + 10.11 NSHighResolutionCapable diff --git a/build-mac-app.sh b/build-mac-app.sh index aec1e48..501b0ea 100755 --- a/build-mac-app.sh +++ b/build-mac-app.sh @@ -6,13 +6,13 @@ mkdir -p Libs cd Libs -sdl_version='2.28.1' +sdl_version='2.30.4' sdl_filename="SDL2-$sdl_version.dmg" sdl_url="https://github.com/libsdl-org/SDL/releases/download/release-$sdl_version/$sdl_filename" -sdl_mixer_version='2.7.0' +sdl_mixer_version='2.8.0' sdl_mixer_filename="SDL2_mixer-$sdl_mixer_version.dmg" -sdl_mixer_url="https://www.libsdl.org/tmp/$sdl_mixer_filename" +sdl_mixer_url="https://github.com/libsdl-org/SDL_mixer/releases/download/release-$sdl_mixer_version/$sdl_mixer_filename" mount_point="$(mktemp -d)" @@ -20,7 +20,7 @@ if [ ! -f "$sdl_filename" ]; then curl -sSf -L -O "$sdl_url" fi -echo "2f936225c10a402cab07055e6f75de76f991945c37feb0cf6af633a96d2fb28c $sdl_filename" | shasum -a 256 -c +echo "2bf2cb8f6b44d584b14e8d4ca7437080d1d968fe3962303be27217b336b82249 $sdl_filename" | shasum -a 256 -c hdiutil attach "$sdl_filename" -mountpoint "$mount_point" -quiet cp -a "$mount_point/SDL2.framework" . hdiutil detach "$mount_point" @@ -29,7 +29,7 @@ if [ ! -f "$sdl_mixer_filename" ]; then curl -sSf -L -O "$sdl_mixer_url" fi -echo "f394c714c8aefdcae0ff9d6eefeb5d42f28e56ed09fcaebb796cb672ca11279d $sdl_mixer_filename" | shasum -a 256 -c +echo "aea973d78f2949b0b2404379dfe775ac367c69485c1d25a5c59f109797f18adf $sdl_mixer_filename" | shasum -a 256 -c hdiutil attach "$sdl_mixer_filename" -mountpoint "$mount_point" -quiet cp -a "$mount_point/SDL2_mixer.framework" . hdiutil detach "$mount_point"