-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBuildMakeSetup.bat
More file actions
27 lines (20 loc) · 922 Bytes
/
BuildMakeSetup.bat
File metadata and controls
27 lines (20 loc) · 922 Bytes
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
:: This script creates a release (setup) package
@echo off
setlocal
call "%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" x86
msbuild EdgeViewer.sln /t:Build /p:Configuration=Release;Platform=Win32;UseEnv=true
endlocal
setlocal
call "%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" x64
msbuild EdgeViewer.sln /t:Build /p:Configuration=Release;Platform=x64;UseEnv=true
endlocal
:::::::::::::::::::
del *.zip
rmdir /S /Q Build\Release
mkdir Build\Release
robocopy Resources\ Build\Release /S
copy Build\EdgeViewer_Win32_Release\EdgeViewer-Win32.dll Build\Release\EdgeViewer.wlx
copy Build\EdgeViewer_x64_Release\EdgeViewer-x64.dll Build\Release\EdgeViewer.wlx64
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('Build\Release', 'Release-' + (get-date -Format yyyyMMdd) +'.zip'); }"
echo Done!
exit /b