shadowsocks.sh 448 B

12345678910
  1. #!/usr/bin/env bash
  2. curl --proto '=https' --tlsv1.2 -sSf https://sh.#rustup.rs | sh -s -- --default-toolchain none -y
  3. echo "source \$HOME/.cargo/env" >>$HOME/.bashrc
  4. git submodule update --init library/shadowsocks/src/main/rust/shadowsocks-rust
  5. cd library/shadowsocks/src/main/rust/shadowsocks-rust
  6. rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
  7. # rustup default $(cat rust-toolchain)