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