-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
76 lines (71 loc) · 2.16 KB
/
install.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
echo ""
echo "====================================================="
echo ""
echo " _____ ______ _____ _______ _ _______"
echo " / ____| ____|/ ____|__ __|/\ | | |__ __|"
echo " | | __| |__ | (___ | | / \ | | | |"
echo " | | |_ | __| \___ \ | | / /\ \ | | | |"
echo " | |__| | |____ ____) | | |/ ____ \| |____| |"
echo " \_____|______|_____/ |_/_/ \_\______|_|"
echo ""
echo "====================================================="
echo " An open source repository of creative coding playground, including interactive design and generative art experiments"
echo " https://github.com/vonqo/gestalt"
echo " Enkh-Amar.G - Mozilla Public License Version 2.0"
echo ""
echo " [WARNING]: If things go wrong. Screw this script and go manual!"
echo " [detecting OS]"
##############################
## Linux
##############################
if [[ "$OSTYPE" == "linux-gnu" ]]; then
echo " OS: Linux-GNU"
##############################
## Linux Install
##############################
##############################
## Linux Build
##############################
echo " [building moodbar]"
cd modules/moodbar/
meson --buildtype=release build/
cd build/
ninja
sudo ninja install
cd ../../
echo " [building zenphoton]"
cd modules/zenphoton/hqz
cd ../../../
make
echo " [building orchestrator]"
cd modules/orchestrator
mvn package
##############################
# Darwin
##############################
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo " OS: Darwin / Mac OSX"
##############################
## Darwin Install
##############################
##############################
## Darwin Build
##############################
echo " [building moodbar]"
cd modules/moodbar-xcode/
xcodebuild
cd ../../
echo " [building zenphoton]"
cd modules/zenphoton/hqz
cd ../../../
make
echo " [building orchestrator]"
cd modules/orchestrator
mvn package
else
##############################
## Eto GG
##############################
echo " [ERROR]: Your operating system is not supported!"
fi