forked from viagogo/HalKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
28 lines (25 loc) · 836 Bytes
/
build.sh
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
#!/bin/bash
export TARGET="BuildApp"
if [ "$#" -ge 1 ]
then
TARGET=$1
fi
export BUILDMODE="Release"
if [ "$#" -ge 2 ]
then
BUILDMODE=$2
fi
if test "$OS" = "Windows_NT"
then
# use .Net
echo Installing build tools...
tools/nuget/NuGet.exe install "FAKE.Core" -OutputDirectory "tools" -ExcludeVersion -Version "3.23.0"
tools/nuget/NuGet.exe install "xunit.runner.console" -OutputDirectory "tools" -ExcludeVersion -Version "2.0.0"
tools/FAKE.Core/tools/FAKE.exe build.fsx $@
else
# use mono
echo Installing build tools...
mono tools/nuget/NuGet.exe install "FAKE.Core" -OutputDirectory "tools" -ExcludeVersion -Version "3.23.0"
mono tools/nuget/NuGet.exe install "xunit.runner.console" -OutputDirectory "tools" -ExcludeVersion -Version "2.0.0"
mono tools/FAKE.Core/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx
fi