Commits

Ruslan Osmanov committed 2133562

Fixed manifest.json version

  • Participants
  • Parent commits add1e38

Comments (0)

Files changed (2)

File manifest.json

 	"manifest_version": 2,
 	"name": "Browser's external editor",
 	"short_name": "Bee",
-	"version": "/home/ruslan/projects/chrome-bee",
+	"version": "2.2",
 	"description": "Allows to edit form text fields with an external editor",
 	"author":"Ruslan Osmanov",
 	"icons": {
 #!/bin/bash -
+# Package CRX archive.
+# Usage ./package.sh <version>
+# where <version> is a version number, e.g. 2.2
 
 set -e -u -x
 
 paths=('google-chrome-stable' 'google-chrome' 'chromium-browser' 'chromium')
 
 version="$1"
+#if [[ "x$1" == "x" ]]; then
+	#version_line="$(grep -o '"version".*' $dir/manifest.json)"
+	#version=`expr "$version_line" : '"version".*\([0-9]\+\\.[0-9]\+\)'`;
+#else
+	#version="$1"
+#fi
+
 crx="${build_dir}/bee-${version}.crx"
 
 for e in $paths
 do
 	exe=$(command -v $e)
-
 	[ -z "$exe" ] && continue
 done
 
 cd $dir
 rm -f ${build_dir}/bee.zip
 zip -x *\.git* -x *\.rope* -r ${build_dir}/bee.zip .
+
+# vim: noet