mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 17:29:23 +00:00
refactor scripts slightly
This commit is contained in:
parent
cddfa6b37e
commit
e0697e4277
12 changed files with 55 additions and 40 deletions
|
@ -2,10 +2,16 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
./configure_duo.sh
|
../app_config/configure_duo.sh
|
||||||
cd ..
|
|
||||||
./configure_duo.sh
|
sed -i "s/${ORIGINAL_APP_ID}/${NEW_APP_ID}/g" ../../android/app/build.gradle
|
||||||
cd android
|
sed -i "s/${ORIGINAL_APP_ID}/${NEW_APP_ID}/g" ../../android/app/src/debug/AndroidManifest.xml
|
||||||
|
sed -i "s/${ORIGINAL_APP_ID}/${NEW_APP_ID}/g" ../../android/app/src/main/AndroidManifest.xml
|
||||||
|
sed -i "s/${ORIGINAL_APP_ID}/${NEW_APP_ID}/g" ../../android/app/src/main/kotlin/com/cypherstack/stackwallet/MainActivity.kt
|
||||||
|
sed -i "s/${ORIGINAL_APP_ID}/${NEW_APP_ID}/g" ../../android/app/src/main/profile/AndroidManifest.xml
|
||||||
|
sed -i "s/${ORIGINAL_APP_ID}/${NEW_APP_ID}/g" ../../android/app/src/profile/AndroidManifest.xml
|
||||||
|
|
||||||
|
# todo: revisit following at some point
|
||||||
|
|
||||||
# libepiccash requires old rust
|
# libepiccash requires old rust
|
||||||
source ../rust_version.sh
|
source ../rust_version.sh
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
# Configure Android for Duo.
|
|
||||||
sed -i 's/com.cypherstack.stackwallet/com.cypherstack.stackduo/g' ../../android/app/build.gradle
|
|
||||||
sed -i 's/com.cypherstack.stackwallet/com.cypherstack.stackduo/g' ../../android/app/src/debug/AndroidManifest.xml
|
|
||||||
sed -i 's/com.cypherstack.stackwallet/com.cypherstack.stackduo/g' ../../android/app/src/main/AndroidManifest.xml
|
|
||||||
sed -i 's/com.cypherstack.stackwallet/com.cypherstack.stackduo/g' ../../android/app/src/main/kotlin/com/cypherstack/stackwallet/MainActivity.kt
|
|
||||||
sed -i 's/com.cypherstack.stackwallet/com.cypherstack.stackduo/g' ../../android/app/src/main/profile/AndroidManifest.xml
|
|
||||||
sed -i 's/com.cypherstack.stackwallet/com.cypherstack.stackduo/g' ../../android/app/src/profile/AndroidManifest.xml
|
|
19
scripts/app_config/configure_duo.sh
Executable file
19
scripts/app_config/configure_duo.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/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
|
|
@ -1,3 +0,0 @@
|
||||||
# Configure files for Duo.
|
|
||||||
sed -i 's/Wallet/Duo/g' ../lib/app_config.dart
|
|
||||||
sed -i 's/Stack Wallet/Stack Duo/g' ../pubspec.yaml
|
|
|
@ -2,10 +2,13 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
./configure_duo.sh
|
../app_config/configure_duo.sh
|
||||||
cd ..
|
|
||||||
./configure_duo.sh
|
# Configure ios for Duo.
|
||||||
cd ios
|
sed -i '' "s/${ORIGINAL_NAME}/${NEW_NAME}/g" ../../ios/Runner/Info.plist
|
||||||
|
sed -i '' "s/${ORIGINAL_APP_ID}/${NEW_APP_ID}/g" ../../ios/Runner.xcodeproj/project.pbxproj
|
||||||
|
|
||||||
|
# todo: revisit following at some point
|
||||||
|
|
||||||
# libepiccash requires old rust
|
# libepiccash requires old rust
|
||||||
source ../rust_version.sh
|
source ../rust_version.sh
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Configure iOS for Duo.
|
|
||||||
sed -i 's/Stack Wallet/Stack Duo/g' ../ios/Runner/Info.plist
|
|
||||||
sed -i 's/com.cypherstack.stackwallet/com.cypherstack.stackduo/g' ../ios/Runner.xcodeproj/project.pbxproj
|
|
|
@ -2,10 +2,13 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
./configure_duo.sh
|
../app_config/configure_duo.sh
|
||||||
cd ..
|
|
||||||
./configure_duo.sh
|
# Configure Linux for Duo.
|
||||||
cd linux
|
sed -i "s/${ORIGINAL_APP_ID}/${NEW_APP_ID}/g" ../../linux/CMakeLists.txt
|
||||||
|
sed -i "s/${ORIGINAL_NAME}/${NEW_NAME}/g" ../../linux/my_application.cc
|
||||||
|
|
||||||
|
# todo: revisit following at some point
|
||||||
|
|
||||||
# libepiccash requires old rust
|
# libepiccash requires old rust
|
||||||
source ../rust_version.sh
|
source ../rust_version.sh
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Configure Linux for Duo.
|
|
||||||
sed -i 's/com.cypherstack.stackwallet/com.cypherstack.stackduo/g' ../../linux/CMakeLists.txt
|
|
||||||
sed -i 's/Stack Wallet/Stack Duo/g' ../../linux/my_application.cc
|
|
|
@ -2,10 +2,12 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
./configure_duo.sh
|
../app_config/configure_duo.sh
|
||||||
cd ..
|
|
||||||
./configure_duo.sh
|
# Configure macOS for Duo.
|
||||||
cd macos
|
sed -i '' 's/com.cypherstack.stackWallet/com.cypherstack.stackDuo/g' ../../macos/Runner.xcodeproj/project.pbxproj
|
||||||
|
|
||||||
|
# todo: revisit following at some point
|
||||||
|
|
||||||
# libepiccash requires old rust
|
# libepiccash requires old rust
|
||||||
source ../rust_version.sh
|
source ../rust_version.sh
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Configure macOS for Duo.
|
|
||||||
sed -i 's/com.cypherstack.stackWallet/com.cypherstack.stackDuo/g' ../macos/Runner.xcodeproj/project.pbxproj
|
|
|
@ -2,10 +2,12 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
./configure_duo.sh
|
../app_config/configure_duo.sh
|
||||||
cd ..
|
|
||||||
./configure_duo.sh
|
# Configure Windows for Duo.
|
||||||
cd windows
|
sed -i 's/Stack Wallet/Stack Duo/g' ../../windows/runner/Runner.rc
|
||||||
|
|
||||||
|
# todo: revisit following at some point
|
||||||
|
|
||||||
# libepiccash requires old rust
|
# libepiccash requires old rust
|
||||||
source ../rust_version.sh
|
source ../rust_version.sh
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Configure Windows for Duo.
|
|
||||||
sed -i 's/Stack Wallet/Stack Duo/g' ../windows/runner/Runner.rc
|
|
Loading…
Reference in a new issue