build: windows installer fix

* added project specific icons to windows installer
* implemented automatic generation of the version number for the windows installer
This commit is contained in:
malte_langkabel
2016-10-27 12:56:27 +02:00
parent 9f847f7897
commit 4cb285b138
4 changed files with 22 additions and 4 deletions
+10 -1
View File
@@ -1,3 +1,11 @@
VERSION_STRING=$(git describe --long)
VERSION_STRING="${VERSION_STRING//-/_}"
VERSION_STRING="${VERSION_STRING//./_}"
VERSION_STRING="${VERSION_STRING%_*}"
VERSION_STRING="${VERSION_STRING//_/.}"
echo "installer version is $VERSION_STRING"
rm -rf build
mkdir build
@@ -7,7 +15,8 @@ mkdir build
rm -rf bin
mkdir bin
candle.exe -dprojectVersion="0.9.0" coati.wxs customActions.wxs dialogShortcuts.wxs installDir.wxs appDataDir.wxs -out build/ > build/compileLog.txt
candle.exe -dprojectVersion="$VERSION_STRING" coati.wxs customActions.wxs dialogShortcuts.wxs installDir.wxs appDataDir.wxs -out build/ > build/compileLog.txt
light.exe -ext WixUIExtension build/coati.wixobj build/customActions.wixobj build/dialogShortcuts.wixobj build/installDir.wixobj build/appDataDir.wixobj -out build/coati.msi > build/linkLog.txt
cp -u -r build/coati.msi bin