diff --git a/README.md b/README.md index ae97873c..6dbcf3d7 100755 --- a/README.md +++ b/README.md @@ -142,15 +142,17 @@ core_temp_thresh = 95000 ## **编译** ```bash -# Ubuntu(NDK is required) +# Ubuntu (NDK is required) apt install gcc-multilib git-lfs clang python3 -# ruff(python lints & format) +# ruff (Python lints & format) pip install ruff -# Rust +# Rust (Nightly version is required) curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +rustup default nightly rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android +rustup component add rust-src # Cargo-ndk cargo install cargo-ndk @@ -161,6 +163,8 @@ cd fas-rs # Compile python3 ./make.py build --release +# Use the `--nightly` option when building(Some nightly flags will be added to produce smaller artifacts) +python3 ./make.py build --release --nightly ``` ## **捐赠** diff --git a/README_EN.md b/README_EN.md index 561a649e..03046c56 100644 --- a/README_EN.md +++ b/README_EN.md @@ -147,12 +147,14 @@ core_temp_thresh = 95000 # Ubuntu (NDK is required) apt install gcc-multilib git-lfs clang python3 -# ruff (python lints & format) +# ruff (Python lints & format) pip install ruff -# Rust +# Rust (Nightly version is required) curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +rustup default nightly rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android +rustup component add rust-src # Cargo-ndk cargo install cargo-ndk @@ -163,4 +165,6 @@ cd fas-rs # Compile python3 ./make.py build --release +# Use the `--nightly` option when building(Some nightly flags will be added to produce smaller artifacts) +python3 ./make.py build --release --nightly ```