-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathBuildMakeSetup.bat
More file actions
27 lines (22 loc) · 936 Bytes
/
BuildMakeSetup.bat
File metadata and controls
27 lines (22 loc) · 936 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 using a prebuilt project.
@echo off
setlocal
call "%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" x86
msbuild MarkdownView.sln /t:Build /p:Configuration=Release;Platform=Win32;UseEnv=true
endlocal
setlocal
call "%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" x64
msbuild MarkdownView.sln /t:Build /p:Configuration=Release;Platform=x64;UseEnv=true
endlocal
rmdir /S /Q ReleaseWLX
mkdir ReleaseWLX
mkdir ReleaseWLX\css
mkdir ReleaseWLX\doc
copy Readme.md ReleaseWLX\doc\
copy hoedown.html ReleaseWLX\doc\
copy Build\*.ini ReleaseWLX\
copy Build\*.wlx? ReleaseWLX\
copy Build\*.inf ReleaseWLX\
copy Build\css\*.* ReleaseWLX\css\
del /Q Release-*.zip
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('ReleaseWLX', 'Release-' + (get-date -Format yyyyMMdd) +'.zip'); }"