1 Star 0 Fork 1

bald9/Hearthstone-Deck-Tracker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bootstrap.ps1 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
Alex Zeier 提交于 2020-07-21 18:31 . Move CI to GitHub Actions
[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"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bald9/Hearthstone-Deck-Tracker.git
[email protected]:bald9/Hearthstone-Deck-Tracker.git
bald9
Hearthstone-Deck-Tracker
Hearthstone-Deck-Tracker
master

搜索帮助