Update shadowsocks build instruction

This commit is contained in:
世界 2021-03-09 20:20:43 +08:00
parent c9b3656089
commit 232a7dc812
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ It is recommended to use the official script, otherwise you may not find rustup.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
echo "source \$HOME/.cargo/env" >> $HOME/.bashrc && source $HOME/.cargo/env
rustup install $(cat ss-rust/src/main/rust/shadowsocks-rust/rust-toolchain)
cd ss-rust/src/main/rust/shadowsocks-rust
rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
```

View File

@ -5,7 +5,7 @@ source "bin/init/env.sh"
## Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
source $HOME/.cargo/env
rustup install $(cat ss-rust/src/main/rust/shadowsocks-rust/rust-toolchain)
cd ss-rust/src/main/rust/shadowsocks-rust
rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
echo "rust.rustcCommand=$HOME/.cargo/bin/rustc" >>local.properties