Renku is a simple cross platform Image Board and Booru browser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
847 B

4 years ago
  1. #!/usr/bin/env bash
  2. DIST_DIRECTORY="renku.dist"
  3. SOURCE="${BASH_SOURCE[0]}"
  4. while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
  5. DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
  6. SOURCE="$(readlink "$SOURCE")"
  7. [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
  8. done
  9. DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
  10. pushd $DIR
  11. source _variables.sh
  12. cd ..
  13. echo "Installing dependencies"
  14. poetry install
  15. echo "Building application"
  16. poetry run python -m nuitka \
  17. --clang \
  18. --lto \
  19. --plugin-enable=qt-plugins \
  20. --follow-imports \
  21. --standalone \
  22. ${MAIN_ENTRYPOINT}
  23. # Qt directory must exist or a segfault will occur on startup
  24. mkdir -p ${DIST_DIRECTORY}/PyQt5/Qt
  25. popd