Skip to content

Commit

Permalink
GPII-1731: Windows Installer should be integrated with our deployment…
Browse files Browse the repository at this point in the history
… and CI infrastructure.
  • Loading branch information
minogian committed Sep 5, 2016
1 parent a449749 commit 2200d65
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 1 deletion.
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ Vagrant.configure(2) do |config|
config.vm.provision "shell", path: "provisioning/chocolatey-packages.bat"
config.vm.provision "shell", path: "provisioning/npm-packages.bat"
config.vm.provision "shell", path: "provisioning/build.bat"
config.vm.provision "shell", path: "provisioning/build-installer.bat"

end
28 changes: 28 additions & 0 deletions provisioning/build-installer.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
pushd .

if not exist C:\installer\\. (
git clone https://github.com/gpii/gpii-wix-installer C:\installer

cd C:\installer
git checkout tags/v1.0.0
)

rmdir /s /q C:\installer\staging\windows

cd C:\vagrant\provisioning
robocopy /job:windows.rcj

cd C:\installer\staging\windows
call npm prune --production

cd C:\installer\setup

pushd ..\
if not exist output\\. mkdir output
if not exist temp\\. mkdir temp
popd

call "C:\Program Files (x86)\Microsoft Visual C++ Build Tools\vcbuildtools_msbuild.bat"
msbuild setup.msbuild

popd
5 changes: 4 additions & 1 deletion provisioning/chocolatey-packages.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
choco install nodejs.install -version 4.4.3 --forcex86 -y
choco install python2 -y
choco install innosetup -y
setx /M PATH "%PATH%;C:\Program Files (x86)\nodejs;C:\tools\python2;C:\Program Files (x86)\Inno Setup 5"
choco install wixtoolset -y
choco install msbuild.extensionpack -y

setx /M PATH "%PATH%;C:\Program Files (x86)\nodejs;C:\tools\python2;C:\Program Files (x86)\Inno Setup 5;C:\Program Files (x86)\WiX Toolset v3.10\bin"
56 changes: 56 additions & 0 deletions provisioning/windows.rcj
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

::
:: Source Directory :
::
/SD:C:\vagrant\ :: Source Directory.

::
:: Destination Directory :
::
/DD:C:\installer\staging\windows\ :: Destination Directory.

::
:: Include These Files :
::
/IF :: Include Files matching these names
:: *.* :: Include all names (currently - Command Line may override)

::
:: Exclude These Directories :
::
/XD :: eXclude Directories matching these names
.git
.vagrant
C:\vagrant\provisioning
C:\vagrant\listeners\GPII_RFIDListener\build
C:\vagrant\listeners\GPII_USBListener\build

::
:: Exclude These Files :
::
/XF :: eXclude Files matching these names
.gitignore
Vagrantfile
*.pdb
*.ipdb
*.iobj
::
:: Copy options :
::
/S :: copy Subdirectories, but not empty ones.
/E :: copy subdirectories, including Empty ones.
/DCOPY:DA :: what to COPY for directories (default is /DCOPY:DA).
/COPY:DAT :: what to COPY for files (default is /COPY:DAT).
::
:: Retry Options :
::
/R:1000000 :: number of Retries on failed copies: default 1 million.
/W:30 :: Wait time between retries: default is 30 seconds.
::
:: Logging Options :
::
/NS :: No Size - don't log file sizes.
/NC :: No Class - don't log file classes.
/NDL :: No Directory List - don't log directory names.
/NFL :: No File List - don't log file names.

0 comments on commit 2200d65

Please sign in to comment.