summaryrefslogtreecommitdiff
path: root/binary.sh
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-03-04 17:46:52 +0100
committerGubolin <gubolin@fantasymail.de>2015-03-04 17:46:52 +0100
commit4b2ca15547c88ff9a785d4716011079cf6c7ae09 (patch)
treefb0ca1de511927cb4e3f3abc0bcf068b2acf2814 /binary.sh
parent3af7d0d6100fba5fcc0ce062597d3dea61ef2ea7 (diff)
downloadsnap-4b2ca15547c88ff9a785d4716011079cf6c7ae09.tar.gz
snap-4b2ca15547c88ff9a785d4716011079cf6c7ae09.zip
drop "binary mode" support (too difficult to mantain)
Diffstat (limited to 'binary.sh')
-rwxr-xr-xbinary.sh13
1 files changed, 4 insertions, 9 deletions
diff --git a/binary.sh b/binary.sh
index 868cef6..83b8d12 100755
--- a/binary.sh
+++ b/binary.sh
@@ -52,13 +52,9 @@ git checkout mobileapp
if [ $ide == false ]
then
# minimize everything
- rm lang* ypr.js paint.js cloud.js gui.js *.sh *.pdf *.txt
+ rm *.sh *.pdf *.txt
rm -r help/ Costumes/ Backgrounds/ Sounds/
- sed -i '/paint\.js"/d' snap.html
- sed -i '/cloud\.js"/d' snap.html
- sed -i 's/gui\.js"/binary\.js"/' snap.html
-
# if a file was given, move it to "project.xml"
# it will be loaded like an URL then
if [ -f "$3" ]
@@ -71,10 +67,9 @@ then
# load custom project from url
sed -i "/ide\.openIn/a\
- ide.droppedText(ide.getURL('$url')); " snap.html
-
-else
- rm binary.js
+ ide.droppedText(ide.getURL('$url'));" snap.html
+ sed -i "/this.toggleAppMode(false)/d" gui.js
+ sed -i "s/snap.html/snap.html#run:/g" config.xml package.json
fi
# compress all js files