-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a29537
commit d453626
Showing
2 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@echo off | ||
|
||
dotnet clean -maxCpuCount WinForms\WinForms.csproj | ||
if %ERRORLEVEL% neq 0 ( | ||
echo Cleaning failed with error code %ERRORLEVEL%. | ||
exit /b %ERRORLEVEL% | ||
) | ||
|
||
dotnet publish -maxCpuCount WinForms\WinForms.csproj /p:DebugType=None /p:DebugSymbols=False /p:Configuration=Release /p:Platform=x64 /p:EnableCompressionInSingleFile=true /p:CopyOutputSymbolsToPublishDirectory=false /p:IncludeNativeLibrariesForSelfExtract=true /p:PublishTrimmed=false /p:SelfContained=true /p:PublishSingleFile=true /p:PublishReadyToRun=true /p:TargetFramework=net8.0-windows /p:RuntimeIdentifier=win-x64 /p:PublishDir=%CD%\bin | ||
if %ERRORLEVEL% neq 0 ( | ||
echo Publishing failed with error code %ERRORLEVEL%. | ||
exit /b %ERRORLEVEL% | ||
) | ||
|
||
move bin\Drill.exe bin\Drill_win-x64.exe | ||
if %ERRORLEVEL% neq 0 ( | ||
echo Moving file failed with error code %ERRORLEVEL%. | ||
exit /b %ERRORLEVEL% | ||
) | ||
|
||
dir bin\Drill_win-x64.exe | ||
if %ERRORLEVEL% neq 0 ( | ||
echo Directory listing failed with error code %ERRORLEVEL%. | ||
exit /b %ERRORLEVEL% | ||
) | ||
|
||
echo Script completed successfully. | ||
exit /b 0 |