Permalink
Browse files

getnsis script for appveyor

  • Loading branch information...
1 parent 9243fca commit b24e542c74b98d05c740210ff21acb954a118cb5 @remcoros remcoros committed Aug 29, 2015
Showing with 24 additions and 0 deletions.
  1. +24 −0 getnsis.ps1
View
@@ -0,0 +1,24 @@
+function Expand-ZIPFile($file, $destination)
+{
+ $shell = new-object -com shell.application
+ $zip = $shell.NameSpace($file)
+ foreach($item in $zip.items())
+ {
+ $shell.Namespace($destination).copyhere($item)
+ }
+}
+
+$toolspath = "c:\buildtools"
+$nsispath = "$toolspath\nsis-3.0b2"
+$makensis = "$nsispath\makensis.exe"
+
+If((Test-Path -Path $makensis) -eq $false)
+{
+ New-Item -ItemType Directory -Force -Path $toolspath
+ $output = "$toolspath\nsis-3.0b2.zip"
+ $url = "http://freefr.dl.sourceforge.net/project/nsis/NSIS%203%20Pre-release/3.0b2/nsis-3.0b2.zip"
+ Invoke-WebRequest -Uri $url -OutFile $output
+ Expand-ZIPFile -File $output -Destination $toolspath
+}
+
+&$makensis "$env:APPVEYOR_BUILD_FOLDER\installer\HearthstoneTracker.nsi"

0 comments on commit b24e542

Please sign in to comment.