mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2024-12-23 07:26:11 +00:00
Project: Update build scripts
This commit is contained in:
parent
17739110ff
commit
66418995b8
42
makebeta
Executable file
42
makebeta
Executable file
@ -0,0 +1,42 @@
|
||||
#!/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
|
||||
|
||||
git commit -a -m "Beta Version $version"
|
||||
|
||||
cd src
|
||||
zip -r ../quickdial-beta-$version.zip .
|
||||
cd ..
|
||||
|
||||
git checkout $branch
|
||||
git branch -D beta
|
@ -46,3 +46,7 @@ git tag -a "v$version" -m "Version $version"
|
||||
git push --tags
|
||||
|
||||
git checkout $branch
|
||||
|
||||
cd src
|
||||
zip -r ../quickdial-$version.zip .
|
||||
cd ..
|
||||
|
Loading…
Reference in New Issue
Block a user