-
Notifications
You must be signed in to change notification settings - Fork 13
/
release.bat
26 lines (23 loc) · 920 Bytes
/
release.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
@echo Off
set config=%1
if "%config%" == "" (
set config=ReleaseCI
)
set version=
if not "%PackageVersion%" == "" (
set version=-Version %PackageVersion%
)
REM Build
"%programfiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" FlexDMD.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
REM Package
mkdir Build
del Build\FlexDMDUI.exe
del Build\FlexDMD.zip
del Build\FlexDMD.dll
del Build\FlexUDMD.dll
copy FlexDMDUI\bin\%config%\FlexDMDUI.exe Build\FlexDMDUI.exe
copy FlexDMD\bin\%config%\ILMerge\FlexDMD.dll Build\FlexDMD.dll
copy FlexUDMD\bin\%config%\FlexUDMD.dll Build\FlexUDMD.dll
copy FlexDMD.log.config Build\FlexDMD.log.config
copy FlexDemo\FlexDemo.vpx Build\FlexDemo.vpx
powershell.exe -nologo -noprofile -command "Compress-Archive -CompressionLevel Optimal -Path Build\Flex*.*, .\Scripts -DestinationPath Build\FlexDMD.zip"