mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-15 00:53:35 -07:00
Fix installing from source
Due to recent build changes, --release no longer applies the right optimization settings, and --profile firmware has to be used.
This commit is contained in:
committed by
Cooper Quintin
parent
70a7d81d05
commit
8755d5694c
@@ -35,9 +35,9 @@ rustup target add x86_64-pc-windows-gnu
|
||||
Now you can root your device and install Rayhunter by running:
|
||||
|
||||
```sh
|
||||
cargo build --bin rayhunter-daemon --target armv7-unknown-linux-musleabihf --release --no-default-features --features orbic
|
||||
cargo build --bin rayhunter-daemon --target armv7-unknown-linux-musleabihf --profile firmware --no-default-features --features orbic
|
||||
|
||||
cargo build --bin rootshell --target armv7-unknown-linux-musleabihf --release
|
||||
cargo build --bin rootshell --target armv7-unknown-linux-musleabihf --profile firmware
|
||||
|
||||
cargo run --bin installer orbic
|
||||
```
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ fn main() {
|
||||
println!("cargo::rerun-if-env-changed=NO_FIRMWARE_BIN");
|
||||
let include_dir = Path::new(concat!(
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"/../target/armv7-unknown-linux-musleabihf/release/"
|
||||
"/../target/armv7-unknown-linux-musleabihf/firmware/"
|
||||
));
|
||||
set_binary_var(&include_dir, "FILE_ROOTSHELL", "rootshell");
|
||||
set_binary_var(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use std::io::{ErrorKind, Write};
|
||||
use std::path::{Path, Prefix};
|
||||
use std::path::Path;
|
||||
use std::time::Duration;
|
||||
|
||||
use adb_client::{ADBDeviceExt, ADBUSBDevice, RustADBError};
|
||||
|
||||
Reference in New Issue
Block a user