18 lines
533 B
Bash
Executable File
18 lines
533 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
STEP=$((STEP+1))
|
|
echo -e "\n> > > > Step №$STEP. Build for macOS"
|
|
|
|
# raylib is required for the 3D scene (used by the RaylibBridge target).
|
|
if [[ -z "${RAYLIB_PREFIX:-}" ]] && command -v brew >/dev/null 2>&1; then
|
|
RAYLIB_PREFIX="$(HOMEBREW_NO_AUTO_UPDATE=1 brew --prefix raylib 2>/dev/null || true)"
|
|
fi
|
|
if [[ -z "${RAYLIB_PREFIX:-}" ]]; then
|
|
RAYLIB_PREFIX=/opt/homebrew
|
|
fi
|
|
export RAYLIB_PREFIX
|
|
echo "> > > > raylib: $RAYLIB_PREFIX"
|
|
|
|
cd $SDIR/../game/ver-mac
|
|
swift build # -Xswiftc -swift-version -Xswiftc 6
|