move pubspec to templates

This commit is contained in:
julian 2024-05-23 17:40:00 -06:00
parent 2519b6feaf
commit 8ae45aff6e
3 changed files with 6 additions and 0 deletions

2
.gitignore vendored
View file

@ -69,6 +69,8 @@ secp256k1.dll
## other generated project files ## other generated project files
pubspec.yaml
/android/app/build.gradle /android/app/build.gradle
/android/app/src/debug/AndroidManifest.xml /android/app/src/debug/AndroidManifest.xml
/android/app/src/profile/AndroidManifest.xml /android/app/src/profile/AndroidManifest.xml

View file

@ -79,6 +79,10 @@ fi
# apply config project wide change changes # apply config project wide change changes
if printf '%s\0' "${APP_NAMED_IDS[@]}" | grep -Fxqz -- "${APP_NAMED_ID}"; then if printf '%s\0' "${APP_NAMED_IDS[@]}" | grep -Fxqz -- "${APP_NAMED_ID}"; then
if [ -f "${APP_PROJECT_ROOT_DIR}/pubspec.yaml" ]; then
rm "${APP_PROJECT_ROOT_DIR}/pubspec.yaml"
fi
cp "${APP_PROJECT_ROOT_DIR}/scripts/app_config/templates/pubspec.yaml" "${APP_PROJECT_ROOT_DIR}/pubspec.yaml"
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/update_version.sh" -v "${APP_VERSION_STRING}" -b "${APP_BUILD_NUMBER}" "${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/update_version.sh" -v "${APP_VERSION_STRING}" -b "${APP_BUILD_NUMBER}"
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/link_assets.sh" "${APP_NAMED_ID}" "${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/link_assets.sh" "${APP_NAMED_ID}"
# shellcheck disable=SC1090 # shellcheck disable=SC1090