Skip to content

Commit

Permalink
Add --version to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
wioux committed Jan 26, 2018
1 parent 1aa03c7 commit 9e47ee6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sh
Expand Up @@ -20,6 +20,14 @@ while [ $# -ne 0 ]; do
shift 2
;;

--version)
code=$(echo "$2" | cut -d : -f 1)
version=$(echo "$2" | cut -d : -f 2)
sed -ri "s@versionCode=\"[^\"]+\"@versionCode=\"$code\"@" config.xml
sed -ri "s@org.eff.actioncenter..version=\"[^\"]+\"@org.eff.actioncenter\" version=\"$version\"@" config.xml
shift 2
;;

*)
echo "Usage: $0 [--no-gulp] [--sign alias]"
exit 1
Expand Down

0 comments on commit 9e47ee6

Please sign in to comment.