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:
Markus Unterwaditzer
2025-05-23 21:20:54 +02:00
committed by Cooper Quintin
parent 70a7d81d05
commit 8755d5694c
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
View File
@@ -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 -1
View File
@@ -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};