entrypoint 599 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. cd $HOME/rustdesk
  3. . $HOME/.cargo/env
  4. argv=$@
  5. while test $# -gt 0; do
  6. case "$1" in
  7. --release)
  8. mkdir -p target/release
  9. test -f target/release/libsciter-gtk.so || cp $HOME/libsciter-gtk.so target/release/
  10. release=1
  11. shift
  12. ;;
  13. --target)
  14. shift
  15. if test $# -gt 0; then
  16. rustup target add $1
  17. shift
  18. fi
  19. ;;
  20. *)
  21. shift
  22. ;;
  23. esac
  24. done
  25. if [ -z $release ]; then
  26. mkdir -p target/debug
  27. test -f target/debug/libsciter-gtk.so || cp $HOME/libsciter-gtk.so target/debug/
  28. fi
  29. VCPKG_ROOT=/vcpkg cargo build $argv