From 0d80d7573624a93dd1f047e435948d81e10a0d76 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Sun, 15 Mar 2026 06:33:12 +0100 Subject: [PATCH] update ci build --- .github/workflows/build.yml | 20 +++----------------- pubspec.yaml | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 765f2731..4b918b73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,18 +62,6 @@ jobs: bundle config path vendor/bundle bundle install - - name: Build container proxy - working-directory: packages/flutter_mozilla_components/javascript/container_proxy - run: | - npm ci - npx webpack - - - name: Build readability - working-directory: packages/flutter_mozilla_components/javascript/readability - run: | - npm ci - npx webpack - - name: Create key file working-directory: app run: | @@ -87,14 +75,12 @@ jobs: cache: true - name: Setup Flutter dependencies - working-directory: app run: | dart pub global activate melos - melos bootstrap + melos bootstrap --no-select - - name: Build APK - working-directory: app - run: flutter build apk --release --target-platform android-arm,android-arm64 --split-per-abi --no-tree-shake-icons + - name: Build browser + run: melos run build-browser --no-select - name: Build App Bundle if: steps.build-type.outputs.is_prerelease == 'false' diff --git a/pubspec.yaml b/pubspec.yaml index ce1e2f6e..510e99cd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -67,3 +67,18 @@ melos: format: description: Format all Dart files in the workspace exec: dart format . + build-browser: + description: Run all preparation scripts and build APK + App Bundle + run: | + set -e + echo "=== Running preparation scripts ===" + sh scripts/build-container-proxy.sh + sh scripts/build-readability.sh + bash scripts/download_bangs.sh + python3 scripts/build_quotes_db.py + sh scripts/update-bridges.sh + sh scripts/update-url-cleaner-catalog.sh + sh scripts/update-url-shorteners.sh + echo "=== Building APK ===" + cd app + flutter build apk --release --target-platform android-arm,android-arm64 --split-per-abi --no-tree-shake-icons