mirror of
https://gitlab.com/cleanflash/installer.git
synced 2026-08-12 18:31:37 +08:00
Fix Mac support (install to user)
This commit is contained in:
@@ -88,7 +88,10 @@ pub fn install(
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let archive_bytes: &[u8] = include_bytes!("../cleanflash.7z");
|
||||
#[cfg(target_os = "linux")]
|
||||
let archive_bytes: &[u8] = include_bytes!("../cleanflash-linux.7z");
|
||||
#[cfg(target_os = "macos")]
|
||||
let archive_bytes: &[u8] = include_bytes!("../cleanflash-macos.7z");
|
||||
|
||||
if archive_bytes.is_empty() {
|
||||
return Ok(());
|
||||
|
||||
@@ -399,7 +399,7 @@ pub fn install(
|
||||
// The 7z archive is embedded in the binary via include_bytes!.
|
||||
// For the port, we expect it at a known resource path; if not present,
|
||||
// this is a no-op placeholder.
|
||||
let archive_bytes: &[u8] = include_bytes!("../cleanflash.7z");
|
||||
let archive_bytes: &[u8] = include_bytes!("../cleanflash-win.7z");
|
||||
|
||||
if archive_bytes.is_empty() {
|
||||
// Nothing to extract; still apply the rest of the steps.
|
||||
|
||||
Reference in New Issue
Block a user