Skip to content

Commit

Permalink
Adapt the paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Dec 20, 2024
1 parent 2c100a8 commit b03c23c
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions src/global/trampoline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,46 +37,39 @@ use super::ExposedName;

#[cfg(target_arch = "aarch64")]
#[cfg(target_os = "macos")]
const TRAMPOLINE_BIN: &[u8] = include_bytes!(
"../../crates/pixi_trampoline/trampolines/pixi-trampoline-aarch64-apple-darwin.zst"
);
const TRAMPOLINE_BIN: &[u8] =
include_bytes!("../../trampoline/binaries/pixi-trampoline-aarch64-apple-darwin.zst");

#[cfg(target_arch = "aarch64")]
#[cfg(target_os = "windows")]
const TRAMPOLINE_BIN: &[u8] = include_bytes!(
"../../crates/pixi_trampoline/trampolines/pixi-trampoline-aarch64-pc-windows-msvc.exe.zst"
);
const TRAMPOLINE_BIN: &[u8] =
include_bytes!("../../trampoline/binaries/pixi-trampoline-aarch64-pc-windows-msvc.exe.zst");

#[cfg(target_arch = "aarch64")]
#[cfg(target_os = "linux")]
const TRAMPOLINE_BIN: &[u8] = include_bytes!(
"../../crates/pixi_trampoline/trampolines/pixi-trampoline-aarch64-unknown-linux-musl.zst"
);
const TRAMPOLINE_BIN: &[u8] =
include_bytes!("../../trampoline/binaries/pixi-trampoline-aarch64-unknown-linux-musl.zst");

#[cfg(target_arch = "x86_64")]
#[cfg(target_os = "macos")]
const TRAMPOLINE_BIN: &[u8] = include_bytes!(
"../../crates/pixi_trampoline/trampolines/pixi-trampoline-x86_64-apple-darwin.zst"
);
const TRAMPOLINE_BIN: &[u8] =
include_bytes!("../../trampoline/binaries/pixi-trampoline-x86_64-apple-darwin.zst");

#[cfg(target_arch = "x86_64")]
#[cfg(target_os = "windows")]
const TRAMPOLINE_BIN: &[u8] = include_bytes!(
"../../crates/pixi_trampoline/trampolines/pixi-trampoline-x86_64-pc-windows-msvc.exe.zst"
);
const TRAMPOLINE_BIN: &[u8] =
include_bytes!("../../trampoline/binaries/pixi-trampoline-x86_64-pc-windows-msvc.exe.zst");

#[cfg(target_arch = "powerpc64")]
#[cfg(target_endian = "little")]
#[cfg(target_os = "linux")]
const TRAMPOLINE_BIN: &[u8] = include_bytes!(
"../../crates/pixi_trampoline/trampolines/pixi-trampoline-powerpc64le-unknown-linux-gnu.zst"
);
const TRAMPOLINE_BIN: &[u8] =
include_bytes!("../../trampoline/binaries/pixi-trampoline-powerpc64le-unknown-linux-gnu.zst");

#[cfg(target_arch = "x86_64")]
#[cfg(target_os = "linux")]
const TRAMPOLINE_BIN: &[u8] = include_bytes!(
"../../crates/pixi_trampoline/trampolines/pixi-trampoline-x86_64-unknown-linux-musl.zst"
);
const TRAMPOLINE_BIN: &[u8] =
include_bytes!("../../trampoline/binaries/pixi-trampoline-x86_64-unknown-linux-musl.zst");

// trampoline configuration folder name
pub const TRAMPOLINE_CONFIGURATION: &str = "trampoline_configuration";
Expand Down

0 comments on commit b03c23c

Please sign in to comment.