Skip to content

Commit

Permalink
adding files for build process
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxC4 committed Feb 6, 2016
1 parent 323b33b commit 9aa49b5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .build/Download-XamarinComponents.ps1
@@ -0,0 +1,22 @@
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)
}
}

IF(-NOT (Test-Path "C:\Xamarin")){
New-Item -ItemType Directory -Path C:\ -Name Xamarin
}

Push-Location C:\Xamarin

IF(-NOT (Test-Path "C:\Xamarin\xamarin-component.exe")) {
Invoke-WebRequest -Uri https://components.xamarin.com/submit/xpkg -OutFile xpkg.zip -UseBasicParsing
Expand-ZIPFile -file C:\Xamarin\xpkg.zip -destination C:\Xamarin
}

Pop-Location
1 change: 1 addition & 0 deletions .build/Restore-XamarinComponents.ps1
@@ -0,0 +1 @@
. C:\Xamarin\xamarin-components.exe restore $args[0]

0 comments on commit 9aa49b5

Please sign in to comment.