-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
25 lines (18 loc) · 1001 Bytes
/
build.bat
File metadata and controls
25 lines (18 loc) · 1001 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
@echo off
echo Building BCFileDecryptor...
dotnet build --configuration Release
echo Running tests...
dotnet test --no-build --configuration Release
echo:
set /p answer="Do you want to create standalone executables? (y/n) "
if /i "%answer%"=="y" (
echo Creating standalone executables...
echo Building for Windows...
dotnet publish BCFileDecryptor\BCFileDecryptor.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -o publish\win-x64
echo Building for Linux...
dotnet publish BCFileDecryptor\BCFileDecryptor.csproj -c Release -r linux-x64 --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -o publish\linux-x64
echo Building for macOS...
dotnet publish BCFileDecryptor\BCFileDecryptor.csproj -c Release -r osx-x64 --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -o publish\osx-x64
echo Done! Executables are available in the 'publish' directory.
)
pause