From 46bf9d73b5b3edcd489eb4de445cb5e9b70d4512 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Mon, 9 Nov 2015 01:55:03 +0300 Subject: [PATCH] Fixed getnatives.ps1 --- src/Skia/getnatives.ps1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Skia/getnatives.ps1 b/src/Skia/getnatives.ps1 index 3d54c7dd44..a2606b5228 100644 --- a/src/Skia/getnatives.ps1 +++ b/src/Skia/getnatives.ps1 @@ -3,8 +3,14 @@ $dir = Split-Path $scriptpath Push-Location $dir Add-Type -AssemblyName System.IO.Compression.FileSystem + rm -Force -Recurse .\native -ErrorAction SilentlyContinue mkdir native $url = cat native.url -Invoke-WebRequest $url -OutFile native\native.zip -[System.IO.Compression.ZipFile]::ExtractToDirectory("native\native.zip", "native") \ No newline at end of file + +$nativedir = join-path $dir "native" +$nativezip = join-path $nativedir "native.zip" + +Invoke-WebRequest $url -OutFile $nativezip +[System.IO.Compression.ZipFile]::ExtractToDirectory(($nativezip), ($nativedir)) +Pop-Location \ No newline at end of file