forked from nightcord/mac
33 lines
596 B
Batchfile
33 lines
596 B
Batchfile
@echo off
|
|
title Nightcord Installer - Build
|
|
cd /d "%~dp0"
|
|
|
|
echo.
|
|
echo Building Nightcord Installer...
|
|
echo ================================
|
|
echo.
|
|
|
|
dotnet publish installer-src\NightcordInstaller.csproj ^
|
|
-c Release ^
|
|
-r win-x64 ^
|
|
--self-contained false ^
|
|
-p:PublishSingleFile=true ^
|
|
-o installer-src\bin\publish
|
|
|
|
if %ERRORLEVEL% neq 0 (
|
|
echo.
|
|
echo [ERROR] Build failed.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo [OK] Build successful!
|
|
echo Output: installer-src\bin\publish\Nightcord-Installer.exe
|
|
echo.
|
|
|
|
:: Ouvre le dossier de sortie
|
|
explorer installer-src\bin\publish
|
|
|
|
pause
|