From 0add6b1830e6cea1f67ecf57f5737cdfbb25d5b7 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sat, 22 Dec 2012 19:32:06 +0100 Subject: [PATCH] add a htaccess to the domauin so we deliver the mini manifest correctly --- package/.htaccess | 1 + package/make-package.sh | 4 +++- package/manifest.package | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 package/.htaccess diff --git a/package/.htaccess b/package/.htaccess new file mode 100644 index 0000000..d31f16e --- /dev/null +++ b/package/.htaccess @@ -0,0 +1 @@ +AddType application/x-web-app-manifest+json package diff --git a/package/make-package.sh b/package/make-package.sh index c9f3d95..d28cfcf 100755 --- a/package/make-package.sh +++ b/package/make-package.sh @@ -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/ diff --git a/package/manifest.package b/package/manifest.package index 6027d6f..40a44b4 100644 --- a/package/manifest.package +++ b/package/manifest.package @@ -1,5 +1,6 @@ { "name": "Tricorder", "package_path": "http://tricorder.kairo.at/package.zip", - "version": "0.DVER" + "version": "0.DVER", + "size": "PKGSIZE" } -- 2.43.0