From 8755d5694c7161c7a59bb6b0a7d489213c45ec25 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 23 May 2025 21:20:54 +0200 Subject: [PATCH] Fix installing from source Due to recent build changes, --release no longer applies the right optimization settings, and --profile firmware has to be used. --- doc/installing-from-source.md | 4 ++-- installer/build.rs | 2 +- installer/src/orbic.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/installing-from-source.md b/doc/installing-from-source.md index 3865366..2c59940 100644 --- a/doc/installing-from-source.md +++ b/doc/installing-from-source.md @@ -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 ``` diff --git a/installer/build.rs b/installer/build.rs index b6682b6..55b271b 100644 --- a/installer/build.rs +++ b/installer/build.rs @@ -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( diff --git a/installer/src/orbic.rs b/installer/src/orbic.rs index debc990..291037d 100644 --- a/installer/src/orbic.rs +++ b/installer/src/orbic.rs @@ -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};