build_win_installer.sh (494B)
1 #!/bin/sh 2 3 script_file=Proteus_Install_Script.iss 4 5 app_version=$(cut -f 2 -d '=' <<< "$(grep 'CMAKE_PROJECT_VERSION:STATIC' ../../build/CMakeCache.txt)") 6 echo "Setting app version: $app_version..." 7 sed -i "s/##APPVERSION##/${app_version}/g" $script_file 8 9 # build installer 10 echo Building... 11 $"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" $script_file 12 13 # reset version number 14 sed -i "s/${app_version}/##APPVERSION##/g" $script_file 15 16 exec="Proteus-Win-$app_version.exe" 17 direc=$PWD 18 19 20 echo SUCCESS