pid.txt
*.wgt
*.wgt.gz
+examples/calf/lib
+examples/hoofbeats/lib
-<?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>
#!/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
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."
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
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',