forked from microsoft/BioModelAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrepareRepository.ps1
More file actions
20 lines (19 loc) · 849 Bytes
/
Copy pathPrepareRepository.ps1
File metadata and controls
20 lines (19 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (c) Microsoft Research 2016
# License: MIT. See LICENSE
mkdir -Force .paket
Invoke-WebRequest https://github.com/fsprojects/Paket/releases/download/3.31.2/paket.bootstrapper.exe -OutFile .\.paket\paket.bootstrapper.exe
if (!$?) {
Write-Error -Message 'ERROR: Failed to download paket bootstrapper.'
exit 1
}
.\.paket\paket.bootstrapper.exe --run install
if (!$?) {
Write-Error -Message 'ERROR: Failed install dependencies with paket.'
exit 1
}
if (-not (Test-Path .\src\ApiServer\unity.azure-appservice.config)) {
copy .\src\ApiServer\unity.azure-appservice.template.config .\src\ApiServer\unity.azure-appservice.config
}
if (-not (Test-Path .\src\ApiService\ServiceConfiguration.Cloud.cscfg)) {
copy .\src\ApiService\ServiceConfiguration.Cloud.template.cscfg .\src\ApiService\ServiceConfiguration.Cloud.cscfg
}