wscript: set rpath to current folder, LD_LIBRARY_PATH is unneeded anymore

Fix README and AppImage launch script accordingly
This commit is contained in:
Alibek Omarov 2022-03-03 05:56:22 +03:00
parent 85f99c723a
commit 8169c2a40b
4 changed files with 2 additions and 3 deletions

View File

@ -35,8 +35,6 @@ This repository contains our fork of HLSDK and restored source code for some of
You still needed to copy `valve` directory as all game resources located there.
3) Run the main executable (`xash3d.exe` or AppImage).
Note: on Linux, without AppImage, you may need to create a shell-script with the command `LD_LIBRARY_PATH=. ./xash3d`.
For additional info, run Xash3D with `-help` command line key.
## Contributing

View File

@ -37,6 +37,7 @@ def build(bld):
features = 'c cxx cxxprogram',
includes = includes,
use = libs,
rpath = '.',
install_path = bld.env.BINDIR,
subsystem = bld.env.MSVC_SUBSYSTEM
)

View File

@ -80,7 +80,6 @@ echo "Xash3D FWGS installed as AppImage."
echo "Base directory is $XASH3D_BASEDIR. Set XASH3D_BASEDIR environment variable to override this"
export XASH3D_EXTRAS_PAK1="${APPDIR}"/extras.pak
export LD_LIBRARY_PATH="${APPDIR}":$LD_LIBRARY_PATH
${DEBUGGER} "${APPDIR}"/xash3d "$@"
exit $?
EOF

View File

@ -119,6 +119,7 @@ def build(bld):
features = 'cxx',
includes = includes,
use = libs,
rpath = '.',
install_path = bld.env.LIBDIR,
subsystem = bld.env.MSVC_SUBSYSTEM
)