diff --git a/blockly.zip b/blockly.zip index 435642969..5e719daa9 100644 Binary files a/blockly.zip and b/blockly.zip differ diff --git a/for-zip/README.txt b/for-zip/README.txt new file mode 100644 index 000000000..d074ca63f --- /dev/null +++ b/for-zip/README.txt @@ -0,0 +1,6 @@ +Thank you for downloading Blockly and participating in the Hour of Code. + +To use Blockly, point a web browser at the file "index.html" in this directory. + +You can ask questions about Blockly in the discussion group at: +"https://groups.google.com/forum/#!forum/blockly". diff --git a/for-zip/index-template.soy b/for-zip/index-template.soy new file mode 100644 index 000000000..0f0058966 --- /dev/null +++ b/for-zip/index-template.soy @@ -0,0 +1,97 @@ +{namespace appsIndex} + +/** + * This is a Closure Template. + * + * To regenerate just en.js, run this command: + * java -jar ../_soy/SoyToJsSrcCompiler.jar --outputPathFormat generated/en.js --srcs ../common.soy,template.soy,../code/template.soy,../graph/template.soy,../maze/template.soy,../plane/template.soy,../puzzle/template.soy,../turtle/template.soy + * + * To regenerate all files, see: trunk/apps/common.soy + */ + +/** + * Translated messages for use on page. + */ +{template .messages} + {call apps.messages /} +
+ {msg meaning="Apps.indexTitle" desc="page text - The word \u0026quot;Apps\u0026quot; is short for \u0026quot;Applications\u0026quot;. We chose it because it is more informal. This and the following messages currently appear at [http://blockly-demo.appspot.com/static/apps/index.html]."}Blockly Apps{/msg} + {msg meaning="Apps.indexFooter" desc="page text - Text appearing at the end of the page. Parameters:\n* %1 - the Blockly URL"}Blockly is free and open source. To contribute code or translations to Blockly, or to use Blockly in your own app, visit %1.{/msg} +
+{/template} + +/** + * Web page structure. + */ +{template .start} + {call .messages /} + + +
+

{msg meaning="Apps.indexTitle" desc="IBID"}Blockly Apps{/msg}

+
+
+ {{msg meaning="Apps.choiceIntro" desc="page text - This appears before a list of Blockly apps. Please surround the name of Blockly with brackets so we can make it a hyperlink. Please use the same term for \u0026quot;Blockly\u0026quot; as in {lb}{lb}msg-blockly|Apps.blocklyMessage{rb}{rb}."}}Blockly is a graphical programming environment. Below are some sample applications that use Blockly.{{/msg}}
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
{msg meaning="Puzzle.title" desc="IBID"}Puzzle{/msg} +
+
{msg meaning="Apps.puzzleSubtitle" desc="page text - A subtitle describing Blockly's [https://blockly-demo.appspot.com/static/apps/puzzle/index.html Puzzle application]."}Learn to use Blockly's interface.{/msg}
+
+ + + + +
{msg meaning="Maze.maze" desc="IBID"}Maze{/msg}
+
{msg meaning="Apps.mazeSubtitle" desc="page text - A subtitle describing Blockly's [https://blockly-demo.appspot.com/static/apps/maze/index.html Maze application]."}Use Blockly to solve a maze.{/msg}
+
+ + + + +
{msg meaning="Turtle.title" desc="IBID"}Turtle Graphics{/msg}
+
{msg meaning="Apps.turtleSubtitle" desc="page text - A subtitle describing Blockly's [https://blockly-demo.appspot.com/static/apps/turtle/index.html Turtle application]."}Use Blockly to draw.{/msg}
+
+ + + + +
{msg meaning="Code.title" desc="IBID"}Code{/msg}
+
{msg meaning="Apps.codeSubtitle" desc="page text - A subtitle describing Blockly's [https://blockly-demo.appspot.com/static/apps/code/index.html Code application]."}Export a Blockly program into JavaScript, Python or XML.{/msg}
+
+ + // The footer messages are set in index.html. +

+ blockly.googlecode.com + +{/template} + + + + + diff --git a/for-zip/index.html b/for-zip/index.html new file mode 100644 index 000000000..e9d350563 --- /dev/null +++ b/for-zip/index.html @@ -0,0 +1,5 @@ + + + + + diff --git a/for-zip/make-zip.sh b/for-zip/make-zip.sh new file mode 100755 index 000000000..9ee263847 --- /dev/null +++ b/for-zip/make-zip.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +# Copy all current files to a temporary directory. +rm -rf /var/tmp/blockly-zip/blockly +mkdir -p /var/tmp/blockly-zip/blockly +cp -r /usr/local/google/home/spertus/src-mirror/blockly/* /var/tmp/blockly-zip/blockly + +# Rebuild the index with the latest language files. +cp /usr/local/google/home/spertus/src-mirror/blockly/for-zip/index-template.soy /var/tmp/blockly-zip/blockly/apps/index/template.soy +cd /var/tmp/blockly-zip/blockly/apps +../i18n/json_to_js.py --output_dir=index/generated --template common.soy,index/template.soy json/*.json + +# Copy in the files just for this distribution +cp /usr/local/google/home/spertus/src-mirror/blockly/for-zip/{index.html,README.txt} /var/tmp/blockly/ + +# Remove unneeded files and directories. +rm -rf /var/tmp/blockly-zip/blockly/appengine +rm -rf /var/tmp/blockly-zip/blockly/apps/{blockfactory,graph,json,plane} +rm -rf /var/tmp/blockly-zip/blockly/apps/{common,template}.soy +rm -rf /var/tmp/blockly-zip/blockly/apps/*/template.soy +rm -rf /var/tmp/blockly-zip/blockly/apps/index/{blockfactory,graph,plane}.png +rm -rf /var/tmp/blockly-zip/blockly/apps/maze/sources +rm -rf /var/tmp/blockly-zip/blockly/apps/turtle/contest +rm -rf /var/tmp/blockly-zip/blockly/{blocks,core,demos,for-zip,generators,i18n,tests} +rm -rf /var/tmp/blockly-zip/blockly/{build.py,codereview.settings,README.md} +rm /var/tmp/blockly-zip/blockly/blockly.zip + +# Zip it up. +cd /var/tmp +rm /usr/local/google/home/spertus/src-mirror/blockly/blockly.zip +zip -r /usr/local/google/home/spertus/src-mirror/blockly/blockly.zip blockly-zip -x "**/.svn**" + + + + +