Change build scripts

This commit is contained in:
2025-10-25 08:38:51 +03:00
parent 45b6fe4d5a
commit 11bfeefa90
7 changed files with 199 additions and 506 deletions

15
package-linux.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
# Usage: ./package-linux.sh <VERSION>
OutputArch="linux-64"
OutputPath="$(mktemp -d)"
Version="$1"
dotnet publish ./v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r "linux-x64" --self-contained -o "$OutputPath"
dotnet publish ./v2rayN/AmazTool/AmazTool.csproj -c Release -r "linux-x64" --self-contained -p:PublishTrimmed=true -o "$OutputPath"
./package-debian.sh "$OutputArch" "$OutputPath" "$Version"
rm -rf "$OutputPath"