Skip to content

Windows build

Eric Gregory edited this page Jun 18, 2015 · 3 revisions

Fang is built in the build folder, and winds up in build/release/deploy

Run vsvars32.bat x86 to setup the Visual Studio environment

Delete any existing build/release folder artifacts:

if exist Fang.exe del Fang.exe
if exist Fang*.msi del Fang*.msi
if exist Fang rmdir Fang /s /q
if exist Fang.exe del Fang.exe
if exist fang.wixobj del fang.wixobj
if exist directory.wixobj del directory.wixobj
if exist directory.wxs del directory.wxs
if exist ..\..\APP_VERSION del ..\..\APP_VERSION

QMake and prebuild (to set environment variables):

qmake -spec win32-msvc2013 -tp vc -r -config release ..
..\winPrebuild.bat

Build from the file build/Fang.vcxproj

At this point there should be a binary at: build/release/Fang.exe

Create a deploy folder, copy Fang.exe into and run Qt's deployment script:

mkdir deploy
copy Fang.exe deploy
windeployqt --qmldir ../../qml deploy

Create the MSI installer with WiX by running the winDeploy batch file from the build/release folder:

..\..\winDeploy.bat

Finally, rename the build artifact:

rename Fang.msi Fang-%env.APP_VERSION%-%build.vcs.number%.msi

Clone this wiki locally