#!/bin/sh # Wrapper to run kobodl from the source/build tree on macOS. # The binary's compiled-in data path assumes a .app bundle layout, so # pass explicit paths instead. HERE="$(cd "$(dirname "$0")" && pwd)" BIN="${KOBODL_BIN:-$HERE/build/kobodl}" SCORES="${KOBODL_SCORES:-$HOME/Library/Application Support/KoboDeluxe/scores}" mkdir -p "$SCORES" exec "$BIN" \ -files "$HERE" \ -gfx "$HERE/data/gfx" \ -sfx "$HERE/data/sfx" \ -scores "$SCORES" \ "$@"