try adding a version into the manifest
authorRobert Kaiser <kairo@kairo.at>
Sun, 14 Sep 2014 20:27:07 +0000 (22:27 +0200)
committerRobert Kaiser <kairo@kairo.at>
Sun, 14 Sep 2014 20:27:07 +0000 (22:27 +0200)
manifest.webapp
package/make-package.sh
package/manifest.package

index e74b258..a0100f7 100644 (file)
@@ -1,6 +1,7 @@
 {
   "name": "Tricorder",
   "description": "Display data from your device sensors in Star Trek style.",
+  "version": "1.DVER",
   "launch_path": "/index.html",
   "permissions": {
     "geolocation": {
index e5e8139..9f10250 100755 (executable)
@@ -10,4 +10,9 @@ zip -r -D -0 $pkgdir/package.zip * -x package/{,.}*
 dver=`date +%y.%j.%H`
 pkgsize=`wc -c $pkgdir/package.zip | awk '{ print $1 }'`
 sed -e "s/DVER/$dver/" -e "s/PKGSIZE/$pkgsize/" package/manifest.package > $pkgdir/manifest.package
+sed -e "s/DVER/$dver/" -e "s/PKGSIZE/$pkgsize/" manifest.webapp > $pkgdir/manifest.webapp
+cd $pkgdir
+zip -f -0 package.zip manifest.webapp
+rm manifest.webapp
+cd $origdir
 cp package/.htaccess $pkgdir/
index ea99a6c..9c0a780 100644 (file)
@@ -1,7 +1,7 @@
 {
   "name": "Tricorder",
   "package_path": "http://tricorder.kairo.at/package.zip",
-  "version": "0.DVER",
+  "version": "1.DVER",
   "size": "PKGSIZE",
   "developer": {
     "name": "Robert Kaiser",