Add project files.
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
@echo off
|
||||
REM Build script for Visual Studio Installer Projects
|
||||
REM Requires: Visual Studio 2017 with Installer Projects extension
|
||||
|
||||
echo ================================================
|
||||
echo Building BoxPacker3D with VS Installer Projects
|
||||
echo ================================================
|
||||
|
||||
REM Check if MSBuild is available
|
||||
where msbuild >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo ERROR: MSBuild not found!
|
||||
echo.
|
||||
echo Please run this from "Developer Command Prompt for VS 2017"
|
||||
echo OR add MSBuild to PATH:
|
||||
echo C:\Program Files ^(x86^)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [1/3] Cleaning previous build...
|
||||
if exist "bin\Release" rmdir /s /q "bin\Release"
|
||||
if exist "obj\Release" rmdir /s /q "obj\Release"
|
||||
|
||||
echo.
|
||||
echo [2/3] Building BoxPacker3D (Release)...
|
||||
msbuild BoxPacker3D.csproj /p:Configuration=Release /p:Platform="Any CPU" /v:minimal /nologo
|
||||
|
||||
if errorlevel 1 (
|
||||
echo.
|
||||
echo ERROR: Project build failed!
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [3/3] Build completed successfully!
|
||||
echo.
|
||||
echo ================================================
|
||||
echo Next steps for installer:
|
||||
echo ================================================
|
||||
echo.
|
||||
echo 1. Open BoxPacker3D.sln in Visual Studio 2017
|
||||
echo 2. Add new Setup Project to solution
|
||||
echo 3. Follow VISUAL_STUDIO_INSTALLER_GUIDE.md
|
||||
echo.
|
||||
echo OR if you already have Setup project:
|
||||
echo.
|
||||
echo msbuild BoxPacker3D.Setup\BoxPacker3D.Setup.vdproj /p:Configuration=Release
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user