1
0
mirror of https://github.com/MatMoul/quickdial-webext.git synced 2024-12-23 15:36:12 +00:00
quickdial-webext/makebeta

45 lines
734 B
Plaintext
Raw Permalink Normal View History

2017-11-12 15:39:37 +00:00
#!/bin/bash
if [ "$1" == "" ]; then
echo "Error: No version provided"
echo "./makebeta 0.0.1b1"
exit 1
fi
clear
branch=$(git rev-parse --abbrev-ref HEAD)
read -p "Current branch is $branch. Continue ? (y/N)" choice
case "$choice" in
n|N|'' )
echo "Cancel !"
exit 1
;;
y|Y ) echo "Make beta...";;
* )
echo "Cancel !"
exit 1
;;
esac
# Ready to update :
git branch beta
git checkout beta
version=$1
sed -i "/\"version\":/c\ \ \"version\": \"$version\"," src/manifest.json
2018-10-21 02:11:04 +00:00
sed -i 's/quickdial@matmoul.com/quickdialtest@matmoul.com/' src/manifest.json
2017-11-12 15:39:37 +00:00
git commit -a -m "Beta Version $version"
cd src
2017-11-12 15:46:24 +00:00
zip -r ../quickdial-beta-$version.zip . -x src.zip
2017-11-12 15:39:37 +00:00
cd ..
git checkout $branch
git branch -D beta
2017-11-12 15:46:24 +00:00