Skip to content

Commit 4daf992

Browse files
committed
added install script which actually installs glslViewer
1 parent 6465da3 commit 4daf992

File tree

2 files changed

+56
-3
lines changed

2 files changed

+56
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_modules/
33
log/*
44
artwork/
55
npm-debug.log
6-
coverage/*
6+
coverage/*
7+
player/*

install.sh

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,58 @@
11
#!/bin/bash
22
#
3-
# Be VERY Careful. This script is executed with admin privileges.
3+
# Be VERY Careful. This script may be executed with admin privileges.
44

55
echo "Hello Openframe (ExamplePlugin install.sh)"
6-
env
6+
7+
os=$(uname)
8+
arq=$(uname -m)
9+
10+
# glslViewer will get cloned into 'player' dir
11+
mkdir player
12+
cd player
13+
14+
if [ $os == "Linux" ]; then
15+
16+
# on Debian Linux distributions
17+
sudo apt-get update
18+
# do we really want to upgrade? this could take a damn long time.
19+
sudo apt-get upgrade
20+
21+
# on RaspberryPi
22+
if [ $arq == "armv7l" ]; then
23+
git clone http://github.com/patriciogonzalezvivo/glslViewer
24+
cd glslViewer
25+
make
26+
sudo make install
27+
else
28+
sudo apt-get install git-core cmake xorg-dev libglu1-mesa-dev
29+
git clone https://github.com/glfw/glfw.git
30+
cd glfw
31+
cmake .
32+
make
33+
sudo make install
34+
cd ..
35+
git clone http://github.com/patriciogonzalezvivo/glslViewer
36+
cd glslViewer
37+
make
38+
sudo make install
39+
fi
40+
41+
42+
elif [ $os == "Darwin" ]; then
43+
44+
# ON MacOX
45+
if [ ! -e /usr/local/bin/brew ]; then
46+
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
47+
fi
48+
49+
brew update
50+
# do we really want to upgrade? this could take a damn long time.
51+
brew upgrade
52+
brew tap homebrew/versions
53+
brew install glfw3 pkg-config
54+
git clone http://github.com/patriciogonzalezvivo/glslViewer
55+
cd glslViewer
56+
make
57+
make install
58+
fi

0 commit comments

Comments
 (0)