Skip to content

Commit

Permalink
Support Linux with Steam integration
Browse files Browse the repository at this point in the history
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
romlok committed Jul 9, 2021
1 parent 39abf59 commit 8a5e02a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Binary file added engine/love/linux/libluajit-5.1.so.2
Binary file not shown.
Binary file added engine/love/linux/love
Binary file not shown.
Binary file added engine/love/linux/luasteam.so
Binary file not shown.
15 changes: 15 additions & 0 deletions run-linux.sh
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"

0 comments on commit 8a5e02a

Please sign in to comment.