Browse Source

Use paket as local tool instead of bootstrapper

pull/858/head
Christoph Ruegg 5 years ago
parent
commit
368b5986ca
  1. BIN
      .paket/paket.exe
  2. 4
      build.cmd
  3. 5
      build.sh
  4. 24
      paket.sh
  5. 6
      restore.cmd
  6. 26
      restore.sh

BIN
.paket/paket.exe

Binary file not shown.

4
build.cmd

@ -1,7 +1,9 @@
@echo off
cls
.paket\paket.exe restore
dotnet tool restore
dotnet paket restore
if errorlevel 1 (
exit /b %errorlevel%
)

5
build.sh

@ -5,7 +5,9 @@ set -o pipefail
cd "$(dirname "$0")"
PAKET_EXE=.paket/paket.exe
dotnet tool restore
dotnet paket restore
FAKE_EXE=packages/build/FAKE/tools/FAKE.exe
FSIARGS=""
@ -34,5 +36,4 @@ then
mozroots --import --sync --quiet
fi
run $PAKET_EXE restore
run $FAKE_EXE "$@" $FSIARGS $FSIARGS2 build.fsx

24
paket.sh

@ -1,24 +0,0 @@
#!/usr/bin/env bash
set -eu
set -o pipefail
cd "$(dirname "$0")"
PAKET_EXE=.paket/paket.exe
function run() {
if [[ "$OS" != "Windows_NT" ]]
then
mono "$@"
else
"$@"
fi
}
if [[ "$OS" != "Windows_NT" ]] && [ ! -e ~/.config/.mono/certs ]
then
mozroots --import --sync --quiet
fi
run $PAKET_EXE "$@"

6
restore.cmd

@ -1,7 +1,5 @@
@echo off
cls
.paket\paket.exe restore
if errorlevel 1 (
exit /b %errorlevel%
)
dotnet tool restore
dotnet paket restore

26
restore.sh

@ -5,27 +5,5 @@ set -o pipefail
cd "$(dirname "$0")"
PAKET_EXE=.paket/paket.exe
OS=${OS:-"unknown"}
if [[ "$OS" != "Windows_NT" ]]
then
# Allows NETFramework like net45 to be built using dotnet core tooling with mono
export FrameworkPathOverride=$(dirname $(which mono))/../lib/mono/4.5/
fi
function run() {
if [[ "$OS" != "Windows_NT" ]]
then
mono "$@"
else
"$@"
fi
}
if [[ "$OS" != "Windows_NT" ]] && [ ! -e ~/.config/.mono/certs ]
then
mozroots --import --sync --quiet
fi
run $PAKET_EXE restore
dotnet tool restore
dotnet paket restore

Loading…
Cancel
Save