forked from jdachtera/grundschrift-app-cordova3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
executable file
·35 lines (30 loc) · 948 Bytes
/
init.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
#!/bin/bash
# Initialize the submodules and directories
git submodule init
git submodule update --recursive
mkdir -p plugins
mkdir -p www
mkdir -p platforms
# Copy non-free asset files
if [ -d ./nonfree ]
then
cp -R ./nonfree/* ./src;
elif [ -e ./nonfree.tar.gz ]
then
tar xzf ./nonfree.tar.gz;
cp -R ./nonfree/* ./src;
else
echo "Please put the file 'nonfree.tar.gz' or the extracted directory 'nonfree' into the main folder and try again";
exit;
fi
# Install the needed cordova plugins
cordova plugin add org.apache.cordova.camera \
org.apache.cordova.device \
org.apache.cordova.media \
org.apache.cordova.file \
org.apache.cordova.console
# Add the platforms
cordova platform add android
cordova platform add ios
echo "";
echo "Now put the files 'ant.properties' and 'my-release-key.keystore' into the ./overlay/android directory";