Skip to content

Commit 8a3a70e

Browse files
committed
fix build
1 parent 3e0e60a commit 8a3a70e

2 files changed

Lines changed: 11 additions & 29 deletions

File tree

build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ if errorlevel 1 (
1010
exit /b %errorlevel%
1111
)
1212

13-
dotnet fake build.fsx %*
13+
dotnet fake build %*

build.sh

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,12 @@
11
#!/usr/bin/env bash
2-
if [ "$OS" = "Windows_NT" ]; then
3-
# use .Net
4-
.paket/paket.exe restore
5-
exit_code=$?
6-
if [ $exit_code -ne 0 ]; then
7-
exit $exit_code
8-
fi
9-
packages/build/FAKE/tools/FAKE.exe $@ --fsiargs build.fsx
10-
else
11-
# use mono
12-
mono .paket/paket.exe restore
13-
exit_code=$?
14-
if [ $exit_code -ne 0 ]; then
15-
certificate_count=$(certmgr -list -c Trust | grep X.509 | wc -l)
16-
if [ $certificate_count -le 1 ]; then
17-
echo "Couldn't download Paket. This might be because your Mono installation"
18-
echo "doesn't have the right SSL root certificates installed. One way"
19-
echo "to fix this would be to download the list of SSL root certificates"
20-
echo "from the Mozilla project by running the following command:"
21-
echo ""
22-
echo " mozroots --import --sync"
23-
echo ""
24-
echo "This will import over 100 SSL root certificates into your Mono"
25-
echo "certificate repository. Then try running the build script again."
26-
fi
27-
exit $exit_code
28-
fi
29-
mono packages/build/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx
2+
dotnet tool restore
3+
exit_code=$?
4+
if [ $exit_code -ne 0 ]; then
5+
exit $exit_code
306
fi
7+
dotnet paket restore
8+
exit_code=$?
9+
if [ $exit_code -ne 0 ]; then
10+
exit $exit_code
11+
fi
12+
dotnet fake build

0 commit comments

Comments
 (0)