v2rayn: add update script

This commit is contained in:
aucub
2025-01-04 01:23:11 +00:00
parent 8185920473
commit 6abc676b17
2 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -37,7 +37,7 @@ buildDotnetModule rec {
--replace-fail "/bin/bash" "${bash}/bin/bash"
'';
dotnetInstallFlags = [ "-p:PublishReadyToRun=false" ];
dotnetBuildFlags = [ "-p:PublishReadyToRun=false" ];
dotnet-sdk = dotnetCorePackages.sdk_8_0;
@@ -104,6 +104,8 @@ buildDotnetModule rec {
magick "v2rayN/v2rayN.Desktop/Assets/v2rayN.ico[11]" $out/share/pixmaps/v2rayn.png
'';
passthru.updateScript = ./update.sh;
meta = {
description = "GUI client for Windows and Linux, support Xray core and sing-box-core and others";
homepage = "https://github.com/2dust/v2rayN";
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash nix nix-update
set -eou pipefail
nix-update v2rayn
$(nix-build -A v2rayn.fetch-deps)