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