blob: e70e72204c90af71b094e22b193a57d8210744e0 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
set -o pipefail
_APPDIR="/usr/lib/@appname@"
_RUNNAME="${_APPDIR}/app/bin/@runname@"
export PATH="${_APPDIR}/app/bin:${_APPDIR}/cli/bin:${_APPDIR}/app/lib/runtime/bin:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}"
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
exec "${_RUNNAME}" "$@"
|