vrcadvert: add update script

This commit is contained in:
Gutyina Gergő
2024-12-13 20:59:57 +01:00
parent 32d09a7f4a
commit 58c0be8a93
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -29,6 +29,8 @@ buildDotnetModule rec {
];
versionCheckProgram = "${placeholder "out"}/bin/VrcAdvert";
passthru.updateScript = ./update.sh;
meta = {
description = "Advertise your OSC app through OSCQuery";
homepage = "https://github.com/galister/VrcAdvert";
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env nix-shell
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
set -eo pipefail
prev_version=$(nix eval --raw -f. vrcadvert.version)
nix-update vrcadvert
[[ $(nix eval --raw -f. vrcadvert.version) == "$prev_version" ]] ||
$(nix-build . -A vrcadvert.fetch-deps --no-out-link)