-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
38 lines (29 loc) · 781 Bytes
/
build.cmd
File metadata and controls
38 lines (29 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
setlocal enableextensions enabledelayedexpansion
PUSHD %~dp0
if exist boot.fsx (
if NOT exist .paket\fake.exe (
dotnet tool install fake-cli --tool-path .paket --version 5.16.0
if errorlevel 1 (
exit /b %errorlevel%
)
)
powershell write-host -fore Green bootstrapping project
.paket\fake.exe run boot.fsx
if errorlevel 1 (
exit /b %errorlevel%
)
del boot.fsx
)
IF NOT exist .paket\paket.exe (
dotnet tool install Paket --tool-path .paket
)
if NOT exist paket.lock (
echo No paket.lock found, running paket install.
.paket\paket.exe install
)
.paket\paket.exe restore
if errorlevel 1 (
exit /b %errorlevel%
)
dotnet packages\build\fake-cli\tools\netcoreapp2.1\any\fake-cli.dll build %*