From 3cd0e10f2cfbe5c0d7ac74644ffc5a054ad44204 Mon Sep 17 00:00:00 2001 From: FMotalleb Date: Sat, 29 Jun 2024 14:14:24 +0330 Subject: [PATCH] fix: build script using wrong features --- build.nu | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.nu b/build.nu index fec0757..ec44b40 100644 --- a/build.nu +++ b/build.nu @@ -5,10 +5,7 @@ def main [package_file: path] { let install_root = $env.NUPM_HOME | path join "plugins" let name = open ($repo_root | path join "Cargo.toml") | get package.name - let features = [] - | if ($nu.os-info.name == "linux") { $in | append enforce-daemon } else { $in } - | if ($nu.os-info.name == "linux" and ($env.XDG_SESSION_TYPE? == "wayland")) {$in | append use-wayland } else { $in } - let cmd = $"cargo install --path ($repo_root) --root ($install_root) --features=($features | str join ",")" + let cmd = $"cargo install --path ($repo_root) --root ($install_root)" log info $"building plugin using: (ansi blue)($cmd)(ansi reset)" nu -c $cmd let ext: string = if ($nu.os-info.name == 'windows') { '.exe' } else { '' }