From e573fa2ba5a1184fd180e7c5ed1cd7f4c174a3b9 Mon Sep 17 00:00:00 2001 From: Locochoco Date: Wed, 8 Nov 2023 14:47:41 -0300 Subject: [PATCH] owmods-cli: remove update script file --- pkgs/applications/misc/owmods-cli/update.sh | 36 --------------------- 1 file changed, 36 deletions(-) delete mode 100755 pkgs/applications/misc/owmods-cli/update.sh diff --git a/pkgs/applications/misc/owmods-cli/update.sh b/pkgs/applications/misc/owmods-cli/update.sh deleted file mode 100755 index f962f6ae89e1..000000000000 --- a/pkgs/applications/misc/owmods-cli/update.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p curl gnused nix-prefetch nix-prefetch-github jq wget - -#modified version of https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/servers/readarr/update.sh -set -e - -dirname="$(dirname "$0")" - -updateCliHash() -{ - version=$1 - - url="https://github.com/ow-mods/ow-mod-man/releases/cli_v$version" - prefetchJson=$(nix-prefetch-github ow-mods ow-mod-man --rev cli_v$version) - sha256="$(echo $prefetchJson | jq -r ".sha256")" - - sed -i "s|hash = \"[a-zA-Z0-9\/+-=]*\";|hash = \"sha256-$sha256\";|g" "$dirname/default.nix" - #download and replace lock file - wget https://raw.githubusercontent.com/ow-mods/ow-mod-man/cli_v$version/Cargo.lock -q -O $dirname/Cargo.lock - -} - -updateVersion() -{ - sed -i "s/version = \"[0-9.]*\";/version = \"$1\";/g" "$dirname/default.nix" -} - -latestTag=$(curl https://api.github.com/repos/ow-mods/ow-mod-man/releases | jq -r ".[0].tag_name") -latestVersion=${latestTag#*v} -echo "latest version: ${latestVersion}" - -echo "updating..." -updateVersion $latestVersion -# -updateCliHash $latestVersion -echo "updated cli"