From 3ff2adbb80da6648ce46b1122ebe02c68c5c57e4 Mon Sep 17 00:00:00 2001 From: YMSTNT <21342713+YMSTNT@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:58:44 +0200 Subject: [PATCH] hifile: add update script --- pkgs/by-name/hi/hifile/package.nix | 2 ++ pkgs/by-name/hi/hifile/update.sh | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 pkgs/by-name/hi/hifile/update.sh diff --git a/pkgs/by-name/hi/hifile/package.nix b/pkgs/by-name/hi/hifile/package.nix index 88a1d420247b..9a565f74f10c 100644 --- a/pkgs/by-name/hi/hifile/package.nix +++ b/pkgs/by-name/hi/hifile/package.nix @@ -28,6 +28,8 @@ appimageTools.wrapType2 rec { --replace-fail 'Exec=HiFile' 'Exec=${pname}' ''; + passthru.updateScript = ./update.sh; + meta = with lib; { description = "Dual-pane graphical file manager for Windows, macOS and Linux"; longDescription = '' diff --git a/pkgs/by-name/hi/hifile/update.sh b/pkgs/by-name/hi/hifile/update.sh new file mode 100755 index 000000000000..95a0ae8440db --- /dev/null +++ b/pkgs/by-name/hi/hifile/update.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env nix-shell +#!nix-shell -I nixpkgs=./. -i bash -p curl common-updater-scripts + +latestVersion=$(curl -s "https://www.hifile.app/otherdownloads" | grep -A 10 '