16 lines
475 B
Bash
Executable File
16 lines
475 B
Bash
Executable File
#!/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"
|