-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathinno-build.bat
27 lines (27 loc) · 1.22 KB
/
inno-build.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
set isxpath="C:\Program Files (x86)\Inno Setup 6"
set isx=%isxpath%\iscc.exe
set iwz=helpers\InnoSetup\CanReg5-InnoSetup.iss
set iwz-r=helpers\InnoSetup\CanReg5-R-packages-InnoSetup.iss
set iwz-w-r=helpers\InnoSetup\CanReg5-with-R-InnoSetup.iss
set iwz-w-r-p=helpers\InnoSetup\CanReg5-with-R-packages-InnoSetup.iss
set zippath="C:\Program Files\7-Zip"
set zx=%zippath%\7z.exe
pandoc changelog.txt -f markdown -t rtf -s -o changelog.rtf
pandoc changelog.txt -f markdown -t html --metadata title="CanReg5 Changelog" -H helpers\pandoc\pandoc.html -s -o changelog.html
REM if not exist %isx% set errormsg=%isx% not found && goto errorhandler
cp changelog.html dist\web
%isx% "%iwz%"
%isx% "%iwz-r%"
%isx% "%iwz-w-r%"
%isx% "%iwz-w-r-p%"
cd dist
%zx% a -tzip CanReg5-Setup.zip CanReg5-Setup.exe
%zx% a -tzip CanReg5-R-Packages-Setup.zip CanReg5-R-Packages-Setup.exe
%zx% a -tzip CanReg5-with-R-Setup.zip CanReg5-with-R-Setup.exe
%zx% a -tzip CanReg5-with-R-Packages-Setup.zip CanReg5-with-R-Packages-Setup.exe
%zx% a -tzip CanReg5-with-R-Setup.zip CanReg5-with-R-Setup.exe
move CanReg5-Setup.zip web\
move CanReg5-R-Packages-Setup.zip web\
move CanReg5-with-R-Packages-Setup.zip web\
move CanReg5-with-R-Setup.zip web\
goto :eof