add a htaccess to the domauin so we deliver the mini manifest correctly
authorRobert Kaiser <kairo@kairo.at>
Sat, 22 Dec 2012 18:32:06 +0000 (19:32 +0100)
committerRobert Kaiser <kairo@kairo.at>
Sat, 22 Dec 2012 18:32:06 +0000 (19:32 +0100)
package/.htaccess [new file with mode: 0644]
package/make-package.sh
package/manifest.package

diff --git a/package/.htaccess b/package/.htaccess
new file mode 100644 (file)
index 0000000..d31f16e
--- /dev/null
@@ -0,0 +1 @@
+AddType application/x-web-app-manifest+json package
index c9f3d95c9ff9dbf85adf52c8cef56ecdb0ff93a8..d28cfcfa0ae6984ff8c7ed81a8412f1d91e43835 100755 (executable)
@@ -8,4 +8,6 @@ origdir=`pwd`
 rm -v $pkgdir/*
 zip -r -D -0 $pkgdir/package.zip * -x package/*
 dver=`date +%y.%j.%k`
-sed -e "s/DVER/$dver/" package/manifest.package > $pkgdir/manifest.package
+pkgsize=`wc -c $pkgdir/package.zip | awk '{ print $1 }'`
+sed -e "s/DVER/$dver/" -e "s/PKGSIZE/$pkgsize/" package/manifest.package > $pkgdir/manifest.package
+cp package/.htaccess $pkgdir/
index 6027d6f8419edad8c19ec6b66b7fbf699f157962..40a44b4d35531b43e03161270930588d0e5c227d 100644 (file)
@@ -1,5 +1,6 @@
 {
   "name": "Tricorder",
   "package_path": "http://tricorder.kairo.at/package.zip",
-  "version": "0.DVER"
+  "version": "0.DVER",
+  "size": "PKGSIZE"
 }