summaryrefslogtreecommitdiff
path: root/binary.sh
diff options
context:
space:
mode:
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