-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostinstall.sh
More file actions
executable file
·42 lines (32 loc) · 895 Bytes
/
postinstall.sh
File metadata and controls
executable file
·42 lines (32 loc) · 895 Bytes
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
SENCHA_URL=http://cdn.sencha.com/ext/gpl/ext-4.2.1-gpl.zip
SENCHA_UNZIPPED_DIR=ext-4.2.1.883/
# install nw-gyp
npm install -g nw-gyp
# recompile serialport for node-webkit v0.8.0
cd node_modules/serialport
nw-gyp rebuild --target=0.8.0
cd ../..
# create tmp install dir
mkdir install_tmp
cd install_tmp
# clone ino repo
git clone https://github.com/fradinni/ino.git
cd ino
# build ino manually, make file is corrupted for MacOS
sudo python setup.py install --record ../../ino_installed_files.txt
# back to tmp install dir
cd ..
if [ ! -f ../src/libs/extjs/ext-all.js ]; then
# download ExtJS
echo "Downloading ExtJS..."
wget $SENCHA_URL
unzip ext-4.2.1-gpl.zip
mv $SENCHA_UNZIPPED_DIR/* ../src/libs/extjs/
fi
# back to root dir
cd ..
# remove tmp install dir
sudo rm -Rf ./install_tmp
# Install codemirror submodule
git submodule update --init
echo "Post install [Finished]"