Compare commits

...

3 commits

Author SHA1 Message Date
Daeho Ro
cb9b7b8862
add brew commands (#218) 2024-08-21 09:56:55 +03:00
Orazio
182bd93648
Update macOS GitHub runner, SDL and extend compatibility (#217)
* Update SDL and SDL_mixer on macOS

* Extend (Intel) Mac compatibility all the way to OS X El Capitan

* Update macOS runner due to GitHub deprecation but still use and Xcode version that supports 10.11
2024-08-21 09:31:43 +03:00
Headshotnoby
cef716e5cc
Add multiple console ports to README (#216)
* Add Nintendo DS port to README

* Add PS2 and Dreamcast ports to README
2024-08-21 09:26:27 +03:00
5 changed files with 29 additions and 8 deletions

View file

@ -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

View file

@ -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")

View file

@ -28,6 +28,8 @@
</array>
<key>CSResourcesFileMapped</key>
<true/>
<key>LSMinimumSystemVersion</key>
<string>10.11</string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>

View file

@ -22,7 +22,10 @@ Supports data files from Windows and Full Tilt versions of the game.
| Android (WIP) | Iscle | https://github.com/Iscle/SpaceCadetPinball |
| Nintendo Wii | MaikelChan | https://github.com/MaikelChan/SpaceCadetPinball |
| Nintendo 3DS | MaikelChan | https://github.com/MaikelChan/SpaceCadetPinball/tree/3ds |
| Nintendo DS | Headshotnoby | https://github.com/headshot2017/3dpinball-nds |
| Nintendo Wii U | IntriguingTiles | https://github.com/IntriguingTiles/SpaceCadetPinball-WiiU |
| PlayStation 2 | Headshotnoby | https://github.com/headshot2017/3dpinball-ps2 |
| Sega Dreamcast | Headshotnoby | https://github.com/headshot2017/3dpinball-dc |
| MorphOS | BeWorld | https://www.morphos-storage.net/?id=1688897 |
| AmigaOS 4 | rjd324 | http://aminet.net/package/game/actio/spacecadetpinball-aos4 |
| Android (WIP) | fexed | https://github.com/fexed/Pinball-on-Android |
@ -76,6 +79,17 @@ This project is available as Flatpak on [Flathub](https://flathub.org/apps/detai
Install XCode (or at least Xcode Command Line Tools with `xcode-select --install`) and CMake.
**HomeBrew**
You can easily install the build artifact by using `brew`.
```sh
brew tap draftbrew/tap
brew install --no-quarantine space-cadet-pinball
```
Be aware that the flag `--no-quarantime` will disable macOS's Gatekeeper during installation.
**Manual compilation:**
* **Homebrew**: Install the `SDL2`, `SDL2_mixer` homebrew packages.

View file

@ -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"