From 530ba8b5818d7cca47da7e05ff6fae27ad7361a4 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 18 Apr 2026 21:29:29 +0300 Subject: [PATCH] build: drop redundant symlink script Signed-off-by: NotAShelf Change-Id: If819a647c6c3ab15eb553967de9bd7fc6a6a6964 --- build.rs | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 build.rs diff --git a/build.rs b/build.rs deleted file mode 100644 index 1d7498e..0000000 --- a/build.rs +++ /dev/null @@ -1,27 +0,0 @@ -use std::fs; - -fn main() { - println!("cargo:rerun-if-changed=build.rs"); -} - -#[cfg(unix)] -pub fn create_pakku_symlink() { - let exe_path = - std::env::current_exe().expect("Failed to get current exe path"); - let exe_dir = exe_path.parent().expect("Failed to get exe directory"); - let pakker_path = exe_dir.join("pakker"); - let pakku_path = exe_dir.join("pakku"); - - if pakker_path.exists() { - if pakku_path.exists() { - let _ = fs::remove_file(&pakku_path); - } - let _ = std::os::unix::fs::symlink(&pakker_path, &pakku_path); - } -} - -#[cfg(not(unix))] -pub fn create_pakku_symlink() { - // No-op on non-Unix systems - println!("This only works on an Unix system! Skipping Pakku symlink.") -}