mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-31 18:15:54 +00:00
17 lines
678 B
Diff
17 lines
678 B
Diff
diff --git a/celeste/src/launch.rs b/celeste/src/launch.rs
|
|
index 5227170..e3cf189 100644
|
|
--- a/celeste/src/launch.rs
|
|
+++ b/celeste/src/launch.rs
|
|
@@ -172,10 +172,7 @@ impl TrayApp {
|
|
perms.set_mode(0o755);
|
|
file.set_permissions(perms).unwrap();
|
|
|
|
- #[cfg(debug_assertions)]
|
|
- let tray_file = include_bytes!("../../target/debug/celeste-tray");
|
|
- #[cfg(not(debug_assertions))]
|
|
- let tray_file = include_bytes!("../../target/release/celeste-tray");
|
|
+ let tray_file = include_bytes!(concat!("../../target/@rustTarget@/", env!("cargoBuildType"), "/celeste-tray"));
|
|
|
|
file.write_all(tray_file).unwrap();
|
|
drop(file);
|