From 672abf2f3ffa3c24fa4439e2bd7390147381b6ef Mon Sep 17 00:00:00 2001 From: Salvatore Iovene Date: Tue, 5 Feb 2013 14:53:21 +0200 Subject: [PATCH] (hoofbeats) Gets the build and deply system to work for Tizen. --- .gitignore | 2 ++ examples/hoofbeats/config.xml | 26 ++++++++++++-------------- examples/hoofbeats/deploy.sh | 15 ++++++++++++++- examples/hoofbeats/make-wgt.sh | 2 +- grunt.js | 19 +++++++++++++++++++ 5 files changed, 48 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 1092bdb..241b59d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ node_modules pid.txt *.wgt *.wgt.gz +examples/calf/lib +examples/hoofbeats/lib diff --git a/examples/hoofbeats/config.xml b/examples/hoofbeats/config.xml index fb65263..fcfb9c2 100644 --- a/examples/hoofbeats/config.xml +++ b/examples/hoofbeats/config.xml @@ -1,14 +1,12 @@ - - - Hoofbeats - - - - - - - - - - - + + + Hoofbeats + + + + + + + + + diff --git a/examples/hoofbeats/deploy.sh b/examples/hoofbeats/deploy.sh index 9dc981d..46a5b44 100755 --- a/examples/hoofbeats/deploy.sh +++ b/examples/hoofbeats/deploy.sh @@ -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." diff --git a/examples/hoofbeats/make-wgt.sh b/examples/hoofbeats/make-wgt.sh index a818d7c..7df064b 100755 --- a/examples/hoofbeats/make-wgt.sh +++ b/examples/hoofbeats/make-wgt.sh @@ -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 diff --git a/grunt.js b/grunt.js index d5a0fda..2f208bb 100644 --- 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', -- 2.7.4