Browse Source

Fixed getnatives.ps1

pull/310/head
Nikita Tsukanov 11 years ago
parent
commit
46bf9d73b5
  1. 10
      src/Skia/getnatives.ps1

10
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")
$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
Loading…
Cancel
Save