-
Notifications
You must be signed in to change notification settings - Fork 6
/
buildall.sh
executable file
·62 lines (55 loc) · 1.43 KB
/
buildall.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#! /bin/sh
# Build script for mono on Unix-like systems
# BUILDTOOL is used to specify the name of the build program. This was tested
# working in late 2020 with both 'msbuild' and the old mono 'xbuild' programs.
# to build with xbuild, either run `BUILDTOOL=xbuild ./buildall.sh` or
# edit the declaration in this file.
if [ -z "$BUILDTOOL" ]; then # if BUILDTOOL is not already set or is empty
BUILDTOOL="msbuild"
fi
SLNFILE="noxico.sln"
good()
{
echo ---------------
echo BUILD COMPLETED
echo ---------------
echo Packing...
cd bin
mkdir -p Noxico
cp Release/Neo.Lua.dll Noxico/
cp Release/Noxico.nox Noxico/
cp Release/Noxico.exe Noxico/
7z u noxico-0.1.6.1.7z Noxico/
cp Release32/Noxico.exe Noxico/
7z u noxico-0.1.6.1-32.7z Noxico/
rm -rf Noxico/
}
nogood()
{
echo ------------
echo BUILD FAILED
echo ------------
exit 1
}
echo -----------
echo BUILD START
echo -----------
# Configuration strings have to be in quotes, or semicolons otherwise escaped.
"$BUILDTOOL" /nologo /v:m /p:'Configuration=Debug;Platform=x64' noxico.sln
if [ "$?" -ne 0 ]; then
nogood
fi
"$BUILDTOOL" /nologo /v:m /p:'Configuration=Debug;Platform=x86' noxico.sln
if [ "$?" -ne 0 ]; then
nogood
fi
"$BUILDTOOL" /nologo /v:m /p:'Configuration=Release;Platform=x64' noxico.sln
if [ "$?" -ne 0 ]; then
nogood
fi
"$BUILDTOOL" /nologo /v:m /p:'Configuration=Release;Platform=x86' noxico.sln
if [ "$?" -ne 0 ]; then
nogood
fi
good
exit 0