Change build scripts
This commit is contained in:
15
package-linux.sh
Executable file
15
package-linux.sh
Executable 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"
|
||||
Reference in New Issue
Block a user