-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·63 lines (50 loc) · 1.05 KB
/
build.sh
File metadata and controls
executable file
·63 lines (50 loc) · 1.05 KB
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
63
#!/bin/bash
path=`dirname $0`
PLUGIN_NAME=gameNetwork-apple
#
# Checks exit value for error
#
checkError() {
if [ $? -ne 0 ]
then
echo "Exiting due to errors (above)"
exit -1
fi
}
#
# Canonicalize relative paths to absolute paths
#
pushd $path > /dev/null
dir=`pwd`
path=$dir
popd > /dev/null
#
# OUTPUT_DIR
#
OUTPUT_DIR=$path/build
# Clean build
if [ -e "$OUTPUT_DIR" ]
then
rm -rf "$OUTPUT_DIR"
fi
# Create dst dir
mkdir "$OUTPUT_DIR"
checkError
#
# Build
#
cd "$path"
echo "========================================================================"
echo "Packaging plugin for SDK..."
./build_sdk.sh "$OUTPUT_DIR" $PLUGIN_NAME
checkError
echo "Done."
# echo "========================================================================"
# echo "Packaging plugin for Enterprise"
# ./build_enterprise.sh "$OUTPUT_DIR" $PLUGIN_NAME
# checkError
# echo "Done."
echo "========================================================================"
echo "Build successful."
echo "Plugin ZIP files available at: '$OUTPUT_DIR'"
cd -