Skip to content

Commit

Permalink
Merge pull request #3 from Endaris/modifyCPath
Browse files Browse the repository at this point in the history
Add export location of linux specific libraries to LUA_CPATH
  • Loading branch information
ellraiser authored Apr 27, 2024
2 parents 7591719 + a9925fe commit 47e8690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ jobs:
- name: Check Build
run: |
ls example-project/dist/1.0.0
love12/love12.AppImage example-project/dist/1.0.0/ExampleGame.love
7z x -y example-project/dist/1.0.0/ExampleGame-linux.zip
./AppRun
- name: Stop xvfb and openbox
# should always stop xvfb and openbox even if other steps failed
if: always()
Expand Down
2 changes: 1 addition & 1 deletion love-build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ return {
apprunfile = apprunfile .. 'if [ -z "$LUA_CPATH" ]; then\n'
apprunfile = apprunfile .. ' LUA_CPATH=";"\n'
apprunfile = apprunfile .. 'fi\n'
apprunfile = apprunfile .. 'export LUA_CPATH="$APPDIR/lib/lua/5.1/?.so;$LUA_CPATH"\n'
apprunfile = apprunfile .. 'export LUA_CPATH="$APPDIR/lib/?.so;$APPDIR/lib/lua/5.1/?.so;$LUA_CPATH"\n'
apprunfile = apprunfile .. 'exec "$APPDIR/bin/' .. love.build.opts.name .. '" "$@"\n'
local apprun = love.filesystem.openFile('temp/' .. srcdir .. '/squashfs-root/AppRun', 'w')
apprun:write(apprunfile)
Expand Down

0 comments on commit 47e8690

Please sign in to comment.