代码拉取完成,页面将自动刷新
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
if (Test-Path "nuget.exe") {
Invoke-Expression "./nuget restore"
}
elseif((Get-Command "nuget" -ErrorAction SilentlyContinue) -ne $null) {
nuget restore
}
else {
"Nuget was not found and is required to run bootstrap.ps. Download and retry now?"
choice /c yn
if ($LASTEXITCODE -eq 1) {
"Downloading nuget..."
$nugetLocation = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
(New-Object Net.WebClient).DownloadFile($nugetLocation, "$PSScriptRoot\nuget.exe")
Invoke-Expression "./nuget restore"
}
}
try {
git --version
}
catch {
"Git was not found and is required to run bootstrap.bat. Download git from https://git-scm.com/download and during installation choose `"Use Git from the Windows Command Prompt`"."
}
function FetchLib($name) {
"Fetching $name..."
$url = "https://libs.hearthsim.net/hdt/$name.dll"
(New-Object Net.WebClient).DownloadFile($url, "$PSScriptRoot\lib\$name.dll")
}
FetchLib "HearthDb"
FetchLib "HearthMirror"
FetchLib "HSReplay"
FetchLib "BobsBuddy"
git clone -q "https://github.com/HearthSim/HDT-Localization" "HDT-Localization"
Copy-Item "HDT-Localization\*.resx" "Hearthstone Deck Tracker\Properties\" -Force
Invoke-Expression "./generate_resources.bat"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。