mirror of
https://github.com/google/blockly.git
synced 2026-01-13 11:57:10 +01:00
* Adds ln_resources script to generate Blockly symbolic links. * Moves toolbox_standard.js into this directory. Relatedly, updates Android and iOS copy scripts and .gitignore files. * Corrects HTML viewport scale and disallows zoom.
22 lines
546 B
Bash
Executable File
22 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
BLOCKLY_ROOT=../../..
|
|
IOS_RESOURCES=Resources/Non-Localized/Blockly
|
|
|
|
MORE_FILES_TO_COPY=(
|
|
"blockly_compressed.js"
|
|
"blocks_compressed.js"
|
|
"media"
|
|
"msg/js"
|
|
)
|
|
|
|
mkdir -p $IOS_RESOURCES/media
|
|
mkdir -p $IOS_RESOURCES/msg/js
|
|
rsync -rp ../html/index.html $IOS_RESOURCES/webview.html
|
|
rsync -rp ../html/toolbox_standard.js $IOS_RESOURCES/toolbox_standard.js
|
|
for i in "${MORE_FILES_TO_COPY[@]}"; do # The quotes are necessary here
|
|
TARGET_DIR=$(dirname $IOS_RESOURCES/$i)
|
|
rsync -rp $BLOCKLY_ROOT/$i $TARGET_DIR
|
|
done
|