mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
call version update script from configure_duo script
version 2.0.0 by default and increments the build number if none passed explicitly.
This commit is contained in:
parent
d329eba45e
commit
532990ae95
2 changed files with 7 additions and 1 deletions
|
@ -8,7 +8,10 @@ export ORIGINAL_APP_ID="com.cypherstack.stackwallet"
|
|||
|
||||
export NEW_NAME="Stack Duo"
|
||||
export NEW_APP_ID="com.cypherstack.stackduo"
|
||||
export NEW_VERSION="2.0.0"
|
||||
export NEW_BUILD="" # Will increment existing build # if empty.
|
||||
|
||||
# String replacements.
|
||||
if [[ "$(uname)" == 'Darwin' ]]; then
|
||||
# macos specific sed
|
||||
sed -i '' 's/Wallet/Duo/g' ../../lib/app_config.dart
|
||||
|
@ -20,3 +23,6 @@ fi
|
|||
|
||||
# Extract Duo images.
|
||||
unzip -o stack_duo_assets.zip -d ../../
|
||||
|
||||
# Update version & build number.
|
||||
./update_version.sh -v "${NEW_VERSION}" -b "${NEW_BUILD}"
|
||||
|
|
|
@ -35,7 +35,7 @@ if [ -z "$VERSION" ]; then
|
|||
VERSION="$CURRENT_VERSION_NUMBER"
|
||||
fi
|
||||
|
||||
# If build number is not provided, increment the current build number by one.
|
||||
# If build number is not provided or is empty, increment the current build number by one.
|
||||
if [ -z "$BUILD_NUMBER" ]; then
|
||||
BUILD_NUMBER=$((CURRENT_BUILD_NUMBER + 1))
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue