(hoofbeats) Gets the build and deply system to work for Tizen.
authorSalvatore Iovene <salvatore@iovene.com>
Tue, 5 Feb 2013 12:53:21 +0000 (14:53 +0200)
committerSalvatore Iovene <salvatore@iovene.com>
Tue, 5 Feb 2013 12:53:21 +0000 (14:53 +0200)
.gitignore
examples/hoofbeats/config.xml
examples/hoofbeats/deploy.sh
examples/hoofbeats/make-wgt.sh
grunt.js

index 1092bdb..241b59d 100644 (file)
@@ -4,3 +4,5 @@ node_modules
 pid.txt
 *.wgt
 *.wgt.gz
+examples/calf/lib
+examples/hoofbeats/lib
index fb65263..fcfb9c2 100644 (file)
@@ -1,14 +1,12 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://otc.intel.com/hoofbeats" version="1.0.0" viewmodes="fullscreen">\r
-    <name>Hoofbeats</name>\r
-    <icon src="icon.png"/>\r
-    <tizen:application id="1234567890" required_version="1.0"/>\r
-    <content src="demos/demo.html"/>\r
-    <access origin="*" subdomains="true"/>\r
-\r
-    <feature name="http://tizen.org/privilege/application" required="false"/>\r
-    <feature name="http://tizen.org/privilege/content" required="false"/>\r
-    <feature name="http://tizen.org/privilege/filesystem" required="false"/>\r
-    <feature name="http://tizen.org/privilege/time" required="true"/>\r
-    <feature name="http://tizen.org/privilege/tizen" required="true"/>\r
-</widget>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://otc.intel.com/hoofbeats" version="1.0.0" viewmodes="fullscreen">
+    <name>Hoofbeats</name>
+    <icon src="icon.png"/>
+    <tizen:application id="1234567890" required_version="1.0"/>
+    <content src="demos/demo.html"/>
+    <access origin="*" subdomains="true"/>
+
+    <feature name="http://tizen.org/privilege/application" required="false"/>
+    <feature name="http://tizen.org/privilege/content.read" required="true"/>
+    <feature name="http://tizen.org/privilege/tizen" required="true"/>
+</widget>
index 9dc981d..46a5b44 100755 (executable)
@@ -1,4 +1,10 @@
 #!/bin/sh
+LOCAL_PORT=11224
+SOCKET='unix:/tmp/qemu.sock'
+
+echo "Deleting the old widget file..."
+sdb shell 'rm /home/developer/hoofbeats.wgt'
+
 echo "Building..."
 ./make-wgt.sh >/dev/null
 
@@ -6,5 +12,12 @@ echo "Pushing the widget file..."
 sdb push hoofbeats.wgt /home/developer
 
 echo "Installing the widget file..."
-sdb shell 'wrt-launcher -k 1234567890; sleep 2; wrt-installer -un 1234567890; wrt-installer -i /home/developer/hoofbeats.wgt; wrt-launcher -d -s 1234567890'
+REMOTE_PORT=`sdb shell 'wrt-launcher -k 1234567890; sleep 2; wrt-installer -un 1234567890; wrt-installer -i /home/developer/hoofbeats.wgt; wrt-launcher -d -s 1234567890' | awk '/port:/ { print $2 }'`
+
+echo "Enabling forwarding to port $PORT..."
+echo "hostfwd_remove ::$LOCAL_PORT" | socat $SOCKET -
+echo "hostfwd_add ::$LOCAL_PORT-:$REMOTE_PORT" | socat $SOCKET -
+
+echo "Starting debuggin..."
+google-chrome http://localhost:$LOCAL_PORT
 echo "Done."
index a818d7c..7df064b 100755 (executable)
@@ -45,5 +45,5 @@ if [[ -f $PROJECT_NAME.wgt ]] ; then
   rm $PROJECT_NAME.wgt
 fi
 
-zip --exclude stats/utils/\* stats/.git -r $PROJECT_NAME.wgt index.html icon.png javascripts
+zip --exclude stats/utils/\* stats/.git -r $PROJECT_NAME.wgt index.html icon.png javascripts lib
 zip -j $PROJECT_NAME.wgt $CONFIG_FILE
index d5a0fda..2f208bb 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -243,6 +243,25 @@ module.exports = function(grunt) {
           flatten: true
         },
         files: {
+          'examples/calf/lib/': [
+            'dist/cowhide-default.css',
+            'dist/cowhide.js',
+            'lib/handlebars-1.0.rc.1.js',
+            'lib/ember-latest.js'
+          ],
+          'examples/hoofbeats/lib/': [
+            'dist/cowhide-default.css',
+            'dist/cowhide.js',
+            'lib/handlebars-1.0.rc.1.js',
+            'lib/ember-latest.js'
+          ]
+        }
+      },
+      examples_lib_dist: {
+        options: {
+          flatten: true
+        },
+        files: {
           'dist/examples/calf/lib/': [
             'dist/cowhide-default.css',
             'dist/cowhide.js',