build installer

This commit is contained in:
Robin Appelman
2018-04-03 01:33:27 +02:00
parent 47e17916a4
commit 966df3097e
3 changed files with 11 additions and 4 deletions
+2
View File
@@ -18,3 +18,5 @@ build_script:
artifacts:
- path: bin\win64\AdvancedSettings.zip
name: portable
- path: installer\AdvancedSettings-Installer.exe
name: installer
+6 -1
View File
@@ -4,7 +4,7 @@ SET project_dir="%cd%"
echo Set up environment...
set original_path=%PATH%
set PATH=%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;C:\Qt\QtIFW2.0.1\bin\;%PATH%
set PATH=%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;C:\Qt\QtIFW2.0.1\bin\;C:\Program Files (x86)\NSIS\;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
cd "%project_dir%
@@ -32,5 +32,10 @@ copy "%project_dir%\third-party\openvr\bin\win64\openvr_api.dll" "AdvancedSettin
echo Packaging portable archive...
7z a AdvancedSettings.zip AdvancedSettings
echo Creating installer...
cd %project_dir%/installer
makensis installer.nsi
set PATH=%original_path%
cd %project_dir%
+3 -3
View File
@@ -6,11 +6,11 @@
;--------------------------------
;General
!define BASEDIR "..\bin\win64"
!define BASEDIR "..\bin\win64\AdvancedSettings"
;Name and file
Name "OpenVR Advanced Settings"
OutFile "OpenVR-AdvancedSettings-Installer.exe"
OutFile "AdvancedSettings-Installer.exe"
;Default installation folder
InstallDir "$PROGRAMFILES64\OpenVR-AdvancedSettings"
@@ -101,7 +101,7 @@ Section "Install" SecInstall
SetOutPath "$INSTDIR"
;ADD YOUR OWN FILES HERE...
File "${BASEDIR}\LICENSE"
File "${BASEDIR}\LICENSE.txt"
File "${BASEDIR}\*.exe"
File "${BASEDIR}\*.dll"
File "${BASEDIR}\*.bat"