Skip to content

Commit

Permalink
fix: build script using wrong features
Browse files Browse the repository at this point in the history
  • Loading branch information
FMotalleb committed Jun 29, 2024
1 parent f430376 commit 3cd0e10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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 { '' }
Expand Down

0 comments on commit 3cd0e10

Please sign in to comment.