Commit | Line | Data |
---|---|---|
93bcfd20 BC |
1 | @echo off\r |
2 | setlocal enabledelayedexpansion\r | |
84306c1d BC |
3 | set /a counter=1\r |
4 | for /f "tokens=3" %%i in (..\..\FIO-VERSION-FILE) do (\r | |
5 | if "!counter!"=="1" set FIO_VERSION=%%i\r | |
6 | set /a counter+=1\r | |
93bcfd20 BC |
7 | )\r |
8 | \r | |
9 | if "%1"=="x86" set FIO_ARCH=x86\r | |
10 | if "%1"=="x64" set FIO_ARCH=x64\r | |
11 | \r | |
12 | if not defined FIO_ARCH (\r | |
13 | echo Error: must specify the architecture.\r | |
14 | echo Usage: dobuild x86\r | |
15 | echo Usage: dobuild x64\r | |
16 | goto end\r | |
17 | )\r | |
18 | \r | |
19 | "%WIX%bin\candle" -nologo -arch %FIO_ARCH% install.wxs\r | |
20 | @if ERRORLEVEL 1 goto end\r | |
21 | "%WIX%bin\candle" -nologo -arch %FIO_ARCH% examples.wxs\r | |
22 | @if ERRORLEVEL 1 goto end\r | |
84306c1d | 23 | "%WIX%bin\light" -nologo install.wixobj examples.wixobj -ext WixUIExtension -out %FIO_VERSION%-%FIO_ARCH%.msi\r |
93bcfd20 | 24 | :end |