mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-01 18:09:15 +08:00
35 lines
599 B
Plaintext
35 lines
599 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
cd $HOME/rustdesk
|
||
|
. $HOME/.cargo/env
|
||
|
|
||
|
argv=$@
|
||
|
|
||
|
while test $# -gt 0; do
|
||
|
case "$1" in
|
||
|
--release)
|
||
|
mkdir -p target/release
|
||
|
test -f target/release/libsciter-gtk.so || cp $HOME/libsciter-gtk.so target/release/
|
||
|
release=1
|
||
|
shift
|
||
|
;;
|
||
|
--target)
|
||
|
shift
|
||
|
if test $# -gt 0; then
|
||
|
rustup target add $1
|
||
|
shift
|
||
|
fi
|
||
|
;;
|
||
|
*)
|
||
|
shift
|
||
|
;;
|
||
|
esac
|
||
|
done
|
||
|
|
||
|
if [ -z $release ]; then
|
||
|
mkdir -p target/debug
|
||
|
test -f target/debug/libsciter-gtk.so || cp $HOME/libsciter-gtk.so target/debug/
|
||
|
fi
|
||
|
|
||
|
VCPKG_ROOT=/vcpkg cargo build $argv
|