From: Robert Kaiser Date: Sat, 22 Dec 2012 18:32:06 +0000 (+0100) Subject: add a htaccess to the domauin so we deliver the mini manifest correctly X-Git-Tag: production~25 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=0add6b1830e6cea1f67ecf57f5737cdfbb25d5b7;p=tricorder.git add a htaccess to the domauin so we deliver the mini manifest correctly --- 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" }