mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 09:19:22 +00:00
ios template files
This commit is contained in:
parent
933bfd9efd
commit
3e91bd7191
4 changed files with 20 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -76,3 +76,7 @@ secp256k1.dll
|
||||||
/android/app/src/main/profile/AndroidManifest.xml
|
/android/app/src/main/profile/AndroidManifest.xml
|
||||||
/android/app/src/main/kotlin/com/cypherstack/stackwallet/MainActivity.kt
|
/android/app/src/main/kotlin/com/cypherstack/stackwallet/MainActivity.kt
|
||||||
/android/app/src/main/res/**/ic_launcher.png
|
/android/app/src/main/res/**/ic_launcher.png
|
||||||
|
|
||||||
|
/ios/Runner/Info.plist
|
||||||
|
/ios/Runner.xcodeproj/project.pbxproj
|
||||||
|
/ios/Runner/Assets.xcassets/AppIcon.appiconset
|
|
@ -2,6 +2,20 @@
|
||||||
|
|
||||||
set -x -e
|
set -x -e
|
||||||
|
|
||||||
|
F0="ios/Runner/Info.plist"
|
||||||
|
F1="ios/Runner.xcodeproj/project.pbxproj"
|
||||||
|
|
||||||
|
TEMPLATES="${APP_PROJECT_ROOT_DIR}/scripts/app_config/templates"
|
||||||
|
|
||||||
|
for (( i=0; i<=1; i++ )); do
|
||||||
|
VAR="F${i}"
|
||||||
|
FILE="${APP_PROJECT_ROOT_DIR}/${!VAR}"
|
||||||
|
if [ -f "${FILE}" ]; then
|
||||||
|
rm "${FILE}"
|
||||||
|
fi
|
||||||
|
cp "${TEMPLATES}/${!VAR}" "${FILE}"
|
||||||
|
done
|
||||||
|
|
||||||
# Configure ios for Duo.
|
# Configure ios for Duo.
|
||||||
sed -i '' "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/ios/Runner/Info.plist"
|
sed -i '' "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/${F0}"
|
||||||
sed -i '' "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/ios/Runner.xcodeproj/project.pbxproj"
|
sed -i '' "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${F1}"
|
||||||
|
|
Loading…
Reference in a new issue