24 lines
775 B
Batchfile
24 lines
775 B
Batchfile
@echo off
|
|
chcp 65001 > nul
|
|
rem JJServiceManager 빌드 (.NET 8 SDK 필요: https://dotnet.microsoft.com/download/dotnet/8.0)
|
|
cd /d "%~dp0"
|
|
|
|
echo [1/2] 런타임 필요판 (작음, .NET 8 Desktop Runtime 설치 필요)
|
|
dotnet publish -c Release -r win-x64 --self-contained false -p:PublishSingleFile=true -o publish\runtime-required
|
|
if errorlevel 1 goto :fail
|
|
|
|
echo [2/2] 단독 실행판 (큼, 설치 없이 실행)
|
|
dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:EnableCompressionInSingleFile=true -o publish\standalone
|
|
if errorlevel 1 goto :fail
|
|
|
|
echo.
|
|
echo 완료: publish 폴더를 확인하세요.
|
|
pause
|
|
exit /b 0
|
|
|
|
:fail
|
|
echo.
|
|
echo 빌드 실패
|
|
pause
|
|
exit /b 1
|