-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·27 lines (19 loc) · 774 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·27 lines (19 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
set -euo pipefail
PROJECT="SCAScanner.csproj"
FLAGS="--self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=false -c Release"
echo "Building SCAScanner — self-contained single-file executables"
echo
dotnet publish "$PROJECT" -r osx-arm64 $FLAGS -o publish/osx-arm64
echo
dotnet publish "$PROJECT" -r linux-x64 $FLAGS -o publish/linux-x64
echo
dotnet publish "$PROJECT" -r win-x64 $FLAGS -o publish/win-x64
echo
RELEASE_DIR="publish/release"
mkdir -p "$RELEASE_DIR"
cp "publish/osx-arm64/SCAScanner" "$RELEASE_DIR/SCAScanner-osx-arm64"
cp "publish/linux-x64/SCAScanner" "$RELEASE_DIR/SCAScanner-linux-x64"
cp "publish/win-x64/SCAScanner.exe" "$RELEASE_DIR/SCAScanner-win-x64.exe"
echo "Build complete:"
ls -lh "$RELEASE_DIR"