forked from llaske/sugarizer
-
Notifications
You must be signed in to change notification settings - Fork 53
/
make_ios.sh
41 lines (28 loc) · 1008 Bytes
/
make_ios.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
date
echo --- Deleting previous content...
cordova plugin remove cordova-plugin-sugarizeros
rm config.xml
cd www
rm -rf *
cd ..
echo --- Minimize
if [ "$1" != "full" -a "$2" != "full" ]; then
cd ../sugarizer
grunt -v
cd ../sugarizer-cordova
fi
echo --- Copying content
rsync -av --exclude-from='exclude.ios' ../sugarizer/* www
cp ../sugarizer/config.xml .
sed -i -e "s/\({\"id\": \"org.sugarlabs.TurtleBlocksJS\",.*\},\)//" www/activities.json
sed -i -e "s/\({\"id\": \"org.somosazucar.JappyActivity\",.*\},\)//" www/activities.json
rm -rf www/activities/Jappy.activity www/activities/TurtleBlocksJS.activity
cordova platform add ios
cordova plugin add https://github.com/llaske/cordova-plugin-wkwebview-file-xhr.git
echo --- Build Cordova debug version
cordova -d build ios
cp ../sugarizer/res/icon/ios/* res/icon/ios
cp ../sugarizer/res/icon/ios/* platforms/ios/sugarizer/Images.xcassets/AppIcon.appiconset
LaunchImage.launchimage
echo --- Use XCode to generate and copy to device
date