mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-04 00:23:25 +08:00
c5d57c03ee
* Replace protobuf 2.6.1 with 3.21.8 * Update/add protobuf libs * Add CS2 protos * Remove old csgo/dota protos * Add versioned protoc bin * Comment out Valve's `schema` define for now * Use ENetworkDisconnectionReason * Fix-up `offsetof` to avoid errors on some Clang versions
21 lines
794 B
PowerShell
21 lines
794 B
PowerShell
#!/usr/bin/env powershell
|
|
# Install dotnet SDK using the official dotnet-install.ps1 script
|
|
|
|
Set-StrictMode -Version 2
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
# avoid "Unknown error on a send" in Invoke-WebRequest
|
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
|
|
|
$InstallScriptUrl = 'https://dot.net/v1/dotnet-install.ps1'
|
|
$InstallScriptPath = Join-Path "$env:TEMP" 'dotnet-install.ps1'
|
|
|
|
# Download install script
|
|
Write-Host "Downloading install script: $InstallScriptUrl => $InstallScriptPath"
|
|
Invoke-WebRequest -Uri $InstallScriptUrl -OutFile $InstallScriptPath
|
|
|
|
# The SDK versions to install should be kept in sync with versions
|
|
# installed by kokoro/linux/dockerfile/test/csharp/Dockerfile
|
|
&$InstallScriptPath -Version 3.1.415
|
|
&$InstallScriptPath -Version 6.0.100
|