Skip to content

Add macOS release #17

@mateuszkrasucki

Description

@mateuszkrasucki

I've managed to successfully build SJ3 for Mac, for both x8664 and arm64.

Requirements:

  • homebrew

Steps

# Install compiler and SDL2
$ brew install fpc sdl2

# Clone Pascal SDL2 headers
$ git clone https://github.com/ev1313/Pascal-SDL-2-Headers

# Compile
$ fpc -Mtp -k-L{path homebrew installed library to, depends on your setup} -k-lSDL2 -k-framework -kOpenGL -k-framework -kCocoa  -Fu./Pascal-SDL-2-Headers/ SJ3.PAS

Since all the tooling works already with Apple Sillicon (sdl2 for arm64 is already available in homebrew and fpc can be easily built)
it's also quite straightforward to build Apple Sillicon version.

I've bundled an universal app with SDL dylib included and here's the DMG available for download: https://www.dropbox.com/s/vfpdeu2m8a7tg8e/SJ3.dmg?dl=0.
You can add it as a Release if interested.

I don't have have an Apple Developer account so it's unsigned and not notarised so one have to go Settings -> Security&Privacy to accept Gatekeeper exception upon first launch. Except that, it just works :)

In case somebody would like to add hills or modify names files etc. you have to open an app bundle by clicking Show Package Contents in context menu (option-click on the app) and going into Contents/Resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    portingGeneric porting related task

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions