mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-11 22:40:49 +01:00
15 lines
497 B
PowerShell
15 lines
497 B
PowerShell
Write-Host("Downloading library")
|
|
$workingPath = (Get-Location).path
|
|
$clnt = new-object System.Net.WebClient
|
|
$url = "http://libsdl.org/release/SDL2-devel-2.0.1-VC.zip"
|
|
$file = $workingPath + "\SDL2-devel-2.0.1-VC.zip"
|
|
$clnt.DownloadFile($url,$file)
|
|
|
|
Write-Host("Unzip the file to local directory")
|
|
$shell_app=new-object -com shell.application
|
|
$zip_file = $shell_app.namespace($file)
|
|
$destination = $shell_app.namespace($workingPath)
|
|
$destination.Copyhere($zip_file.items())
|
|
|
|
Write-Host("Done")
|