-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathget_external_binaries.ps1
27 lines (20 loc) · 1.03 KB
/
get_external_binaries.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
############################################
# Sharpmake
############################################
$Url = 'https://github.com/ubisoft/Sharpmake/releases/download/0.18.2/Sharpmake-0.18.2-net5.0-Windows.zip'
$ZipFile = $PSScriptRoot + '/' + $(Split-Path -Path $Url -Leaf)
$ExtractPath = $PSScriptRoot + '/external/sharpmake/'
New-Item -ItemType Directory -Path $ExtractPath -Force
Invoke-WebRequest -Uri $Url -OutFile $ZipFile
Expand-Archive $ZipFile -DestinationPath $ExtractPath -Force
Remove-Item -Path $ZipFile -Force -Confirm:$false
############################################
# WinPixEventRuntime
############################################
$Url = 'https://www.nuget.org/api/v2/package/WinPixEventRuntime/1.0.240308001'
$ZipFile = $PSScriptRoot + '/pix.zip'
$ExtractPath = $PSScriptRoot + '/external/WinPixEventRuntime/'
New-Item -ItemType Directory -Path $ExtractPath -Force
Invoke-WebRequest -Uri $Url -OutFile $ZipFile
Expand-Archive $ZipFile -DestinationPath $ExtractPath -Force
Remove-Item -Path $ZipFile -Force -Confirm:$false