AppRun 753 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh -e
  2. # SPDX-FileCopyrightText: 2022 <djcj@gmx.de>
  3. # SPDX-License-Identifier: MIT
  4. # From: https://github.com/darealshinji/AppImageKit-checkrt
  5. # add your command to execute here
  6. exec=yuzu
  7. cd "$(dirname "$0")"
  8. if [ "x$exec" = "x" ]; then
  9. exec="$(sed -n 's|^Exec=||p' *.desktop | head -1)"
  10. fi
  11. if [ -x "./usr/optional/checkrt" ]; then
  12. extra_libs="$(./usr/optional/checkrt)"
  13. fi
  14. if [ -n "$extra_libs" ]; then
  15. export LD_LIBRARY_PATH="${extra_libs}${LD_LIBRARY_PATH}"
  16. if [ -e "$PWD/usr/optional/exec.so" ]; then
  17. export LD_PRELOAD="$PWD/usr/optional/exec.so:${LD_PRELOAD}"
  18. fi
  19. fi
  20. export SSL_CERT_FILE="$PWD/ca-certificates.pem"
  21. #echo ">>>>> LD_LIBRARY_PATH $LD_LIBRARY_PATH"
  22. #echo ">>>>> LD_PRELOAD $LD_PRELOAD"
  23. exec ./usr/bin/yuzu "$@"