1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/emojijiji-Hearthstone-Deck-Tracker

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
bootstrap.ps1 1.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Alex Zeier Отправлено 22.07.2020 04:31 d6013e9
[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"

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/emojijiji-Hearthstone-Deck-Tracker.git
git@api.gitlife.ru:oschina-mirror/emojijiji-Hearthstone-Deck-Tracker.git
oschina-mirror
emojijiji-Hearthstone-Deck-Tracker
emojijiji-Hearthstone-Deck-Tracker
master