From 36efaf5a908835e491492dd8b7f54301e1869266 Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Wed, 5 Jun 2024 14:23:18 -0400 Subject: [PATCH] Modify pre build script --- .github/actions/pre_build/action.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/actions/pre_build/action.yml b/.github/actions/pre_build/action.yml index 49aa9292..1557deb9 100644 --- a/.github/actions/pre_build/action.yml +++ b/.github/actions/pre_build/action.yml @@ -6,16 +6,18 @@ runs: steps: - name: Configure Flutter CLI shell: bash - run: flutter config --no-cli-animations --enable-analytics --color + run: flutter config --no-cli-animations --enable-analytics - name: Enable Flutter tools shell: bash - run: export TERM=xterm-color && dart pub global activate flutter_gen --color && dart pub global activate intl_translation --color && dart pub global activate build_runner --color + run: \ + dart pub global activate flutter_gen + dart pub global activate intl_translation - name: Get dependencies shell: bash - run: export TERM=xterm-color && flutter pub get --color + run: flutter pub get - name: Generate translation files shell: bash - run: export TERM=xterm-color && dart pub global run --color intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/Frontend/translation_string_definitions.dart lib/l10n/*.arb + run: dart pub global run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/Frontend/translation_string_definitions.dart lib/l10n/*.arb - name: Generate dart .g files shell: bash - run: export TERM=xterm-color && dart pub global run --color build_runner build --delete-conflicting-outputs + run: dart pub run build_runner build --delete-conflicting-outputs