refactor scripts slightly

This commit is contained in:
julian 2024-05-15 17:13:50 -06:00
parent cddfa6b37e
commit ee3b16bcc6
12 changed files with 55 additions and 40 deletions

View file

@ -2,10 +2,16 @@
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd android
../app_config/configure_duo.sh
sed -i "s/${ORIGINAL_APP_ID}/${NEW_APP_ID}/g" ../../android/app/build.gradle
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
source ../rust_version.sh

View file

@ -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

View 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

View file

@ -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

View file

@ -2,10 +2,13 @@
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd ios
../app_config/configure_duo.sh
# Configure ios for Duo.
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
source ../rust_version.sh

View file

@ -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

View file

@ -2,10 +2,13 @@
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd linux
../app_config/configure_duo.sh
# Configure Linux for Duo.
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
source ../rust_version.sh

View file

@ -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

View file

@ -2,10 +2,12 @@
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd macos
../app_config/configure_duo.sh
# Configure macOS for Duo.
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
source ../rust_version.sh

View file

@ -1,2 +0,0 @@
# Configure macOS for Duo.
sed -i 's/com.cypherstack.stackWallet/com.cypherstack.stackDuo/g' ../macos/Runner.xcodeproj/project.pbxproj

View file

@ -2,10 +2,12 @@
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd windows
../app_config/configure_duo.sh
# Configure Windows for Duo.
sed -i 's/Stack Wallet/Stack Duo/g' ../../windows/runner/Runner.rc
# todo: revisit following at some point
# libepiccash requires old rust
source ../rust_version.sh

View file

@ -1,2 +0,0 @@
# Configure Windows for Duo.
sed -i 's/Stack Wallet/Stack Duo/g' ../windows/runner/Runner.rc