v2rayn: 7.4.1 -> 7.6.2
This commit is contained in:
Generated
+34
-34
@@ -1,8 +1,8 @@
|
||||
[
|
||||
{
|
||||
"pname": "Avalonia",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-lYWqgjYOyh4pg+TdkgqeFhi8OMI1p9IOvSntVXo5zvE="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-NUoyXJkIsgbkcKFVb10VRafM4ViHs801c/7vhu3ssUY="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Angle.Windows.Natives",
|
||||
@@ -16,68 +16,68 @@
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Controls.ColorPicker",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-Mmp7Mjy9Y6uvkfjE8KLWoJWcVZHiJwqmhQupsxYRExo="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-z3ZHxVSOoOjqq+5G71jnGN1Y0i3YpAkox7cj3lNr6kg="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Controls.DataGrid",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-RbkISZEp55N9dtqvPp0Ej2/wpU/YzI4wgJjBCJnIGl4="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-jIJvuYN0iym/WeOC0C7z5xj5kCZSXGoeLQ/q5qQfewM="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Desktop",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-ucd2SH0CAjwE5TSgwhhzYZqMD1zuTlR7qLQDl3mYGvg="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-srtZi+kDbhRtMl33l91zssBWETU5oHodKbbWyfEsb/I="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Diagnostics",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-aOji+/TYSP0l3dpn62bvWMdce2YkYi5xzRPC3nS6ZGc="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-DIGkaBff+C3BLwedw5xteR5lfzb6ecxiLt12eJVgLQc="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Fonts.Inter",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-H1h+PQBW8vrvJnKQZ+vcFaxCVssBcuHGBQw1Jj8dMR0="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-ySsCXVpjqjCX/uYkwluSfrAoBtuq9k7fC1bFjxKC9/Q="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.FreeDesktop",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-c/u6TX1Hl2h8B5xe7Zo1AJ6cR5BazI19NRnw56a36y0="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-3sNemBmZE06w2ul87T5HrEeHUxXMOa9MfQhpI4AoxDY="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Native",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-2Scuc+OCtfLChDYCi4feCh9XUrgJpbVaek3xRnpOGDE="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-2Gp98NGWcrILqF+P5PDMPRdsMby/lZiT3eWAUskFim8="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.ReactiveUI",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-Rr/wmmS47korAK0nAplpWCWrS1O9YZZD6i+efR7btN0="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-NqRetBiFg5gNCS8C0J1JJJsZ4sz+w+GoEegGFddBGDg="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Remote.Protocol",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-lMb3VvHXQGxn0dyEGkzKXxFocvPJUaNnOpRJpHF9ORU="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-dSeu7rnTD9rIvlyro2iFS52oi0vvfeaGV3kDm90BkKw="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Skia",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-YmOT+r4OfyOyg8epho6bVaEW2HImEfsZ5rNqhWIY5Fk="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-QBp8wTA92hGwbmNSVL4gsjrqA9CfwDPgdTiOEqcogGA="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Themes.Simple",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-HXkfpUuTN8hSBMXCCGW78+2GC5w3VdTUp1qm7HvUZPI="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-UF15yTDzHmqd33siH3TJxmxaonA51dzga+hmCUahn1k="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.Win32",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-pouvlprL9VeEi1dG5zR6nFj+I/4CIjH1rHbV3N9/FHg="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-xKFKObvqdJaQjphEktRJvzmAoDEsKg3WqlEG31V3qLE="
|
||||
},
|
||||
{
|
||||
"pname": "Avalonia.X11",
|
||||
"version": "11.2.2",
|
||||
"hash": "sha256-86EIfm1zEvKleliP58xAs7KGxP/n7x2m8ca8C9W1XqA="
|
||||
"version": "11.2.3",
|
||||
"hash": "sha256-SD4dmpKx4l8YOyUnrA0fnf2Bb+tHSNyARh7GAtHyg60="
|
||||
},
|
||||
{
|
||||
"pname": "CliWrap",
|
||||
@@ -176,13 +176,13 @@
|
||||
},
|
||||
{
|
||||
"pname": "Semi.Avalonia",
|
||||
"version": "11.2.1.2",
|
||||
"hash": "sha256-64eayKF+P3qrUZIOOVliqnZ8zK7ZCCxFz1RkD5kJSxM="
|
||||
"version": "11.2.1.3",
|
||||
"hash": "sha256-AtJSFLa/zHk/58fJ+1h6IDowNDLTaRNUVaQ7lfQyYAw="
|
||||
},
|
||||
{
|
||||
"pname": "Semi.Avalonia.DataGrid",
|
||||
"version": "11.2.1.2",
|
||||
"hash": "sha256-zEEmBjgksVgv9qwnKAFfDhDkrHphKe1/836Ax1gyazc="
|
||||
"version": "11.2.1.3",
|
||||
"hash": "sha256-CEjvrgPSxqubAQ6aOiag7SukA19WJ2s4G3zeLrk9810="
|
||||
},
|
||||
{
|
||||
"pname": "SkiaSharp",
|
||||
@@ -351,8 +351,8 @@
|
||||
},
|
||||
{
|
||||
"pname": "YamlDotNet",
|
||||
"version": "16.2.1",
|
||||
"hash": "sha256-Nu/rD43sihE4PTHC5r2Ua2gafclqcd2U95RcNFvGFhc="
|
||||
"version": "16.3.0",
|
||||
"hash": "sha256-4Gi8wSQ8Rsi/3+LyegJr//A83nxn2fN8LN1wvSSp39Q="
|
||||
},
|
||||
{
|
||||
"pname": "ZXing.Net",
|
||||
|
||||
@@ -11,21 +11,21 @@
|
||||
openssl,
|
||||
lttng-ust_2_12,
|
||||
krb5,
|
||||
imagemagick,
|
||||
makeDesktopItem,
|
||||
copyDesktopItems,
|
||||
bash,
|
||||
xorg,
|
||||
xdg-utils,
|
||||
}:
|
||||
buildDotnetModule rec {
|
||||
pname = "v2rayn";
|
||||
version = "7.4.1";
|
||||
version = "7.6.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "2dust";
|
||||
repo = "v2rayN";
|
||||
tag = version;
|
||||
hash = "sha256-mtmuEwZy72LPYFf7hzE8TYiSh2kK6xe2CRdkOSbg2h4=";
|
||||
hash = "sha256-o+aeBdV/OT4cFovCeivM2i60r4mbZ0FPOY8XNdKRrpg=";
|
||||
};
|
||||
|
||||
projectFile = "v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj";
|
||||
@@ -35,6 +35,10 @@ buildDotnetModule rec {
|
||||
postPatch = ''
|
||||
substituteInPlace v2rayN/ServiceLib/Common/Utils.cs \
|
||||
--replace-fail "/bin/bash" "${bash}/bin/bash"
|
||||
substituteInPlace v2rayN/ServiceLib/Handler/AutoStartupHandler.cs \
|
||||
--replace-fail "Utils.GetExePath())" '"${placeholder "out"}/bin/v2rayN")'
|
||||
substituteInPlace v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs \
|
||||
--replace-fail "nautilus" "${xdg-utils}/bin/xdg-open"
|
||||
'';
|
||||
|
||||
dotnetBuildFlags = [ "-p:PublishReadyToRun=false" ];
|
||||
@@ -46,7 +50,6 @@ buildDotnetModule rec {
|
||||
executables = [ "v2rayN" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
imagemagick
|
||||
copyDesktopItems
|
||||
autoPatchelfHook
|
||||
];
|
||||
@@ -71,24 +74,6 @@ buildDotnetModule rec {
|
||||
xorg.libXext
|
||||
];
|
||||
|
||||
postBuild =
|
||||
let
|
||||
selectSystem =
|
||||
attrs:
|
||||
attrs.${stdenv.hostPlatform.system}
|
||||
or (throw "v2rayn: ${stdenv.hostPlatform.system} is not supported");
|
||||
arch = selectSystem {
|
||||
x86_64-linux = "x64";
|
||||
aarch64-linux = "arm64";
|
||||
};
|
||||
in
|
||||
''
|
||||
mv ./v2rayN/v2rayN.Desktop/bin/Release/net8.0/linux-${arch} ./v2rayN/v2rayN.Desktop/bin/Release/v2rayn
|
||||
rm -r ./v2rayN/v2rayN.Desktop/bin/Release/net8.0
|
||||
mv ./v2rayN/v2rayN.Desktop/bin/Release/v2rayn ./v2rayN/v2rayN.Desktop/bin/Release/net8.0
|
||||
ln -s . ./v2rayN/v2rayN.Desktop/bin/Release/net8.0/linux-${arch}
|
||||
'';
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "v2rayn";
|
||||
@@ -96,12 +81,17 @@ buildDotnetModule rec {
|
||||
icon = "v2rayn";
|
||||
genericName = "v2rayN";
|
||||
desktopName = "v2rayN";
|
||||
categories = [
|
||||
"Network"
|
||||
"Application"
|
||||
];
|
||||
terminal = false;
|
||||
comment = "A GUI client for Windows and Linux, support Xray core and sing-box-core and others";
|
||||
})
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/pixmaps
|
||||
magick "v2rayN/v2rayN.Desktop/Assets/v2rayN.ico[11]" $out/share/pixmaps/v2rayn.png
|
||||
install -Dm644 v2rayN/v2rayN.Desktop/v2rayN.png $out/share/pixmaps/v2rayn.png
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
Reference in New Issue
Block a user