Commit f4f981a2 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Update release script

parent ca287a2f
......@@ -10,14 +10,15 @@ if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ ]]; then
# Change the version in package.json and test file
sed -i "s/version\": \"$current/version\": \"$2/g" package.json
sed -i "s/version').equal('.*/version').equal('$2');/g" test/integration/branches.js
sed -i "s/ release: .*/ release: $2/g" appveyor.yml
if [[ "$1" =~ ^rel$ ]]; then
# This is RELEASE: change the version in public installer + add the RELEASE flag
sed -i "s/echo \"v.*\"/echo \"v$2\"/g" install.sh
sed -i "s/.*prerelease: true/# prerelease: true/g" .travis.yml
sed -i "s/.*prerelease: true/# prerelease: true/g" .travis.yml appveyor.yml
fi
if [[ "$1" =~ ^pre$ ]]; then
# This is RELEASE: just change the RELEASE flag to PRERELEASE
sed -i "s/# prerelease: true/ prerelease: true/g" .travis.yml
sed -i "s/# prerelease: true/ prerelease: true/g" .travis.yml appveyor.yml
fi
;;
*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment