-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
43 lines (39 loc) · 1.01 KB
/
Copy pathbuild.bat
File metadata and controls
43 lines (39 loc) · 1.01 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off
echo ============================================
echo Ruler Overlay - Build Script
echo ============================================
echo.
:: Check for .NET SDK
dotnet --version >nul 2>&1
if errorlevel 1 (
echo ERROR: .NET SDK not found.
echo Please install .NET 8.0 SDK from https://dotnet.microsoft.com/download/dotnet/8.0
pause
exit /b 1
)
echo [1/3] Restoring NuGet packages...
dotnet restore RulerOverlay\RulerOverlay.csproj
if errorlevel 1 (
echo ERROR: Package restore failed.
pause
exit /b 1
)
echo.
echo [2/3] Publishing self-contained single-file EXE...
dotnet publish RulerOverlay\RulerOverlay.csproj -c Release -o publish
if errorlevel 1 (
echo ERROR: Build failed.
pause
exit /b 1
)
echo.
echo [3/3] Done!
echo.
echo ============================================
echo Output: publish\RulerOverlay.exe
echo ============================================
echo.
echo The EXE is self-contained and portable.
echo No .NET runtime installation needed to run it.
echo.
pause