-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Linux with Steam integration
NB. We also need a copy of 64-bit libsteam_api.so available in the engine/love/linux directory, or elsewhere on the LD_LIBRARY_PATH.
- Loading branch information
Showing
4 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
# NB. Requires libsteam_api.so on the LD_LIBRARY_PATH | ||
# or within ./engine/love/linux/ | ||
|
||
set -e | ||
|
||
GAME_PATH="$(dirname "$0" | xargs realpath)" | ||
EXEC_PATH="$GAME_PATH/engine/love" | ||
|
||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$EXEC_PATH/linux" | ||
export LUA_CPATH="$EXEC_PATH/linux/?.so" | ||
|
||
# NB. We have to be in EXEC_PATH, so Steam finds the steam_appid.txt | ||
cd "$EXEC_PATH" | ||
./linux/love "$GAME_PATH" |