diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index a1e566107..81b3f9932 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -228,6 +228,9 @@ jobs: - name: Generate localization run: dart run tool/generate_localization.dart + - name: Compile SVG assets (res/pictures/*.svg → assets/new-ui/*.svg.vec) + run: ./compile_graphics.sh + # ---- Compile + sign -------------------------------------------------- # Universal APK (single binary covers all 4 ABIs, easy to sideload). - name: Build release APK (universal, all ABIs) diff --git a/.github/workflows/build-ios-sim.yml b/.github/workflows/build-ios-sim.yml index 01c90f645..5ffac48f1 100644 --- a/.github/workflows/build-ios-sim.yml +++ b/.github/workflows/build-ios-sim.yml @@ -215,6 +215,9 @@ jobs: - name: Generate localization run: dart run tool/generate_localization.dart + - name: Compile SVG assets (res/pictures/*.svg → assets/new-ui/*.svg.vec) + run: ./compile_graphics.sh + # CocoaPods: the iOS Podfile installs Flutter plugin pods. Required # before flutter build can link them. - name: pod install diff --git a/.github/workflows/build-ios-testflight.yml b/.github/workflows/build-ios-testflight.yml index b83cc90b8..d3f955f80 100644 --- a/.github/workflows/build-ios-testflight.yml +++ b/.github/workflows/build-ios-testflight.yml @@ -252,6 +252,9 @@ jobs: - name: Generate localization run: dart run tool/generate_localization.dart + - name: Compile SVG assets (res/pictures/*.svg → assets/new-ui/*.svg.vec) + run: ./compile_graphics.sh + - name: pod install run: | cd ios diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 332824cd8..f07803c33 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -161,6 +161,9 @@ jobs: - name: Generate localization run: dart run tool/generate_localization.dart + - name: Compile SVG assets (res/pictures/*.svg → assets/new-ui/*.svg.vec) + run: ./compile_graphics.sh + # ---- Compile + package ---------------------------------------------- - name: Build Linux app run: flutter build linux --dart-define-from-file=env.json --release diff --git a/pubspec_base.yaml b/pubspec_base.yaml index a1b56fc12..8e18fa92d 100644 --- a/pubspec_base.yaml +++ b/pubspec_base.yaml @@ -173,6 +173,11 @@ dev_dependencies: build_resolvers: ^2.4.4 hive_generator: ^2.0.1 flutter_launcher_icons: ^0.13.1 + # Cake's compile_graphics.sh runs `dart run vector_graphics_compiler` to + # precompile res/pictures/*.svg → assets/new-ui/*.svg.vec. Without this + # dep, the CI build doesn't generate the icon assets and CakeImageWidget + # silently fails to load them (icons render as empty placeholders). + vector_graphics_compiler: ^1.1.16 pedantic: ^1.8.0 # replace https://github.com/dart-lang/lints#migrating-from-packagepedantic translator: