From 560502b9af826c5fcabbae2bf4601d9b35aac47d Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 13 Jun 2024 12:56:59 -0700 Subject: [PATCH] Get dust installing without cargo --- recipes/default/newunix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/recipes/default/newunix b/recipes/default/newunix index 9c60371..3fc1d15 100755 --- a/recipes/default/newunix +++ b/recipes/default/newunix @@ -34,16 +34,18 @@ sudo_package "duf" # dust: https://github.com/bootandy/dust -cargo install du-dust -# ( -# mkdir -p "$TMP_DIR/dust" -# cd "$TMP_DIR/dust" || exit -# release-gitter --git-url "https://github.com/bootandy/dust" \ -# --map-system Windows=pc-windows-msvc \ -# --map-system Linux=unknown-linux-gnu \ -# --map-system Darwin=apple-darwin \ -# "dust-{version}-{arch}-{system}.tar.gz" -# ) +cargo install du-dust || +( + mkdir -p "$TMP_DIR/dust" + cd "$TMP_DIR/dust" || exit + release-gitter --git-url "https://github.com/bootandy/dust" \ + --map-system Windows=pc-windows-msvc \ + --map-system Linux=unknown-linux-gnu \ + --map-system Darwin=apple-darwin \ + --extract-all \ + --exec "mv dust-*/dust ~/bin/" \ + "dust-{version}-{arch}-{system}.tar.gz" +) # Manager specific packages case "$PACKAGE_MANAGER" in