Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Commit

Permalink
simplify release script to only what we need. Not going to post crx f…
Browse files Browse the repository at this point in the history
…iles. You can build them yourself

or download from webstore.
  • Loading branch information
matt-h committed Jan 18, 2012
1 parent 1963ed7 commit e05a148
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions release.sh
Expand Up @@ -3,11 +3,9 @@
set -e

version=$1
force=$2

package=$(basename $(pwd))
output_dir=/tmp/$package-$version
PRIVATE_KEY=~/chrome-keys/$package.pem
output_dir=~/tmp/$package-$version
if [[ ! $version ]]; then
echo "Needs a version number as argument"
exit 1
Expand All @@ -25,7 +23,7 @@ if [[ $(git diff | grep manifest.json) ]]; then
fi

echo "Tagging locally"
git tag $force $version
git tag $version

echo "Pushing tag"
git push --tags origin master
Expand All @@ -41,9 +39,7 @@ cp manifest.json $output_dir
cp rdio-enhancer.js $output_dir
cp rdio-enhancer.css $output_dir

echo "Packing for github upload"
chromium --pack-extension=$output_dir --pack-extension-key=$PRIVATE_KEY

echo "Creating zip file for webstore upload"
echo "Creating zip file for Chrome webstore upload"
rm -f $output_dir.zip
zip -r $output_dir.zip $output_dir

0 comments on commit e05a148

Please sign in to comment.