-
Notifications
You must be signed in to change notification settings - Fork 1
/
100_build_exe.bat
33 lines (30 loc) · 1.11 KB
/
100_build_exe.bat
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
@echo off
REM --------------------------------------------------
REM 各ビルド環境用の環境変数設定
REM --------------------------------------------------
REM https://www.appveyor.com/docs/environment-variables/
if "%APPVEYOR%"=="True" (
set EXTRA_CMD=/verbosity:minimal /logger:"%ProgramFiles%\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
set MSBUILD_PATH=msbuild
set SLN_PATH="%APPVEYOR_BUILD_FOLDER%\CompactMeter.sln"
) else (
set EXTRA_CMD=
set MSBUILD_PATH="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe"
set SLN_PATH=CompactMeter.sln
)
REM --------------------------------------------------
REM 32bit build
REM --------------------------------------------------
set CMD=%MSBUILD_PATH% %SLN_PATH% /p:Platform=x86 /p:Configuration=Release /t:"Build" %EXTRA_CMD%
echo.
echo %CMD%
echo.
%CMD%
REM --------------------------------------------------
REM 64bit build
REM --------------------------------------------------
set CMD=%MSBUILD_PATH% %SLN_PATH% /p:Platform=x64 /p:Configuration=Release /t:"Build" %EXTRA_CMD%
echo.
echo %CMD%
echo.
%CMD%