build installer
This commit is contained in:
@@ -18,3 +18,5 @@ build_script:
|
|||||||
artifacts:
|
artifacts:
|
||||||
- path: bin\win64\AdvancedSettings.zip
|
- path: bin\win64\AdvancedSettings.zip
|
||||||
name: portable
|
name: portable
|
||||||
|
- path: installer\AdvancedSettings-Installer.exe
|
||||||
|
name: installer
|
||||||
|
|||||||
+6
-1
@@ -4,7 +4,7 @@ SET project_dir="%cd%"
|
|||||||
|
|
||||||
echo Set up environment...
|
echo Set up environment...
|
||||||
set original_path=%PATH%
|
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%
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
|
||||||
|
|
||||||
cd "%project_dir%
|
cd "%project_dir%
|
||||||
@@ -32,5 +32,10 @@ copy "%project_dir%\third-party\openvr\bin\win64\openvr_api.dll" "AdvancedSettin
|
|||||||
|
|
||||||
echo Packaging portable archive...
|
echo Packaging portable archive...
|
||||||
7z a AdvancedSettings.zip AdvancedSettings
|
7z a AdvancedSettings.zip AdvancedSettings
|
||||||
|
|
||||||
|
echo Creating installer...
|
||||||
|
cd %project_dir%/installer
|
||||||
|
makensis installer.nsi
|
||||||
|
|
||||||
set PATH=%original_path%
|
set PATH=%original_path%
|
||||||
cd %project_dir%
|
cd %project_dir%
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
;--------------------------------
|
;--------------------------------
|
||||||
;General
|
;General
|
||||||
|
|
||||||
!define BASEDIR "..\bin\win64"
|
!define BASEDIR "..\bin\win64\AdvancedSettings"
|
||||||
|
|
||||||
;Name and file
|
;Name and file
|
||||||
Name "OpenVR Advanced Settings"
|
Name "OpenVR Advanced Settings"
|
||||||
OutFile "OpenVR-AdvancedSettings-Installer.exe"
|
OutFile "AdvancedSettings-Installer.exe"
|
||||||
|
|
||||||
;Default installation folder
|
;Default installation folder
|
||||||
InstallDir "$PROGRAMFILES64\OpenVR-AdvancedSettings"
|
InstallDir "$PROGRAMFILES64\OpenVR-AdvancedSettings"
|
||||||
@@ -101,7 +101,7 @@ Section "Install" SecInstall
|
|||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
|
|
||||||
;ADD YOUR OWN FILES HERE...
|
;ADD YOUR OWN FILES HERE...
|
||||||
File "${BASEDIR}\LICENSE"
|
File "${BASEDIR}\LICENSE.txt"
|
||||||
File "${BASEDIR}\*.exe"
|
File "${BASEDIR}\*.exe"
|
||||||
File "${BASEDIR}\*.dll"
|
File "${BASEDIR}\*.dll"
|
||||||
File "${BASEDIR}\*.bat"
|
File "${BASEDIR}\*.bat"
|
||||||
|
|||||||
Reference in New Issue
Block a user