mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-19 00:54:33 +00:00
19 lines
516 B
Bash
19 lines
516 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
# Configure files for Duo.
|
||
|
export ORIGINAL_NAME="Stack Wallet"
|
||
|
export ORIGINAL_APP_ID="com.cypherstack.stackwallet"
|
||
|
|
||
|
export NEW_NAME="Stack Duo"
|
||
|
export NEW_APP_ID="com.cypherstack.stackduo"
|
||
|
|
||
|
if [[ "$(uname)" == 'Darwin' ]]; then
|
||
|
# macos specific sed
|
||
|
sed -i '' 's/Wallet/Duo/g' ../../lib/app_config.dart
|
||
|
sed -i '' "s/${ORIGINAL_NAME}/${NEW_NAME}/g" ../../pubspec.yaml
|
||
|
else
|
||
|
sed -i 's/Wallet/Duo/g' ../../lib/app_config.dart
|
||
|
sed -i "s/${ORIGINAL_NAME}/${NEW_NAME}/g" ../../pubspec.yaml
|
||
|
fi
|