HashLink: fix the ability to double-click the .app file on macOS to run it

The HashLink executable expects hlboot.dat and libraries to be in the current working directory (it's not enough for them to be in the same directory as the executable). Make the .app file launch a shell script that 1) changes the current working directory 2) launches the HashLink executable
This commit is contained in:
Josh Tynjala
2022-07-13 10:01:06 -07:00
parent 06baca4396
commit fd0fc3da48
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
# HashLink needs a specific working directory to find hlboot.dat and libraries
cd "$(dirname "$0")"
exec ./hl