Browse Source

fix(build): update Android build script to use new asset validation

- Replace check-android-resources.sh call with npm run assets:validate
- Fix 'No such file or directory' error in build-android.sh
- Ensure builds work consistently across all development environments
- Maintain build workflow while using new standardized asset system

This fix resolves the build failure that occurred after removing legacy
asset generation scripts, ensuring the new capacitor-assets workflow
integrates seamlessly with existing build orchestration.

Tested: Android build completes successfully with asset validation
Assets: 87 platform assets generated automatically via capacitor-assets
pull/165/head
Matthew Raymer 3 days ago
parent
commit
76749a097d
  1. 6
      scripts/build-android.sh

6
scripts/build-android.sh

@ -254,9 +254,9 @@ if [ "$DEPLOY_APP" = true ]; then
exit 0
fi
# Step 1: Check and fix Android resources
safe_execute "Checking Android resources" "$(dirname "$0")/check-android-resources.sh" || {
log_warn "Resource check found issues, but continuing with build..."
# Step 1: Validate asset configuration
safe_execute "Validating asset configuration" "npm run assets:validate" || {
log_warn "Asset validation found issues, but continuing with build..."
}
# Step 2: Clean Android app

Loading…
Cancel
Save