Skip to content

Commit be39579

Browse files
authored
Merge pull request #895 from Universal-Debloater-Alliance/fix/selfupdate-apple-arch
hotfix(self-update): differentiate between Intel and Apple Silicon on MacOS and update Windows binary name
2 parents 87b5a9a + b22d38c commit be39579

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/core/update.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,15 @@ pub fn extract_binary_from_tar(archive_path: &Path, temp_file: &Path) -> io::Res
235235
pub const fn bin_name() -> &'static str {
236236
#[cfg(target_os = "windows")]
237237
{
238-
"uad-ng.exe"
238+
"uad-ng-windows.exe"
239239
}
240240

241-
#[cfg(target_os = "macos")]
241+
#[cfg(all(target_os = "macos", any(target_arch = "x86_64", target_arch = "x86")))]
242+
{
243+
"uad-ng-macos-intel"
244+
}
245+
246+
#[cfg(all(target_os = "macos", any(target_arch = "arm", target_arch = "aarch64")))]
242247
{
243248
"uad-ng-macos"
244249
}

0 commit comments

Comments
 (0)