-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
39 lines (31 loc) · 1.33 KB
/
Copy pathbuild.bat
File metadata and controls
39 lines (31 loc) · 1.33 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
@echo off
title Build InstallPilot — Release
chcp 65001 >nul
set MSBUILD=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
set DIST=%~dp0dist
if not exist "%MSBUILD%" (
echo [ERREUR] MSBuild introuvable.
echo Installez le .NET Framework 4.8 Developer Pack.
pause & exit /b 1
)
echo.
echo ══════════════════════════════════════════
echo Compilation InstallPilot ^(Release^)
echo ══════════════════════════════════════════
echo.
"%MSBUILD%" InstallPilot.csproj /p:Configuration=Release /p:Platform="Any CPU" /t:Clean,Build /v:minimal /nologo
if %errorlevel% neq 0 (
echo.
echo [ERREUR] La compilation a echoue.
pause & exit /b %errorlevel%
)
echo.
if not exist "%DIST%" mkdir "%DIST%"
copy /y "bin\Release\InstallPilot.exe" "%DIST%\InstallPilot.exe" >nul
echo ══════════════════════════════════════════
echo OK — dist\InstallPilot.exe
echo ══════════════════════════════════════════
echo.
echo L'executable est standalone : copiez uniquement InstallPilot.exe.
echo.
pause