Skip to content

Commit

Permalink
build debug version for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Apr 12, 2024
1 parent 4ce020b commit 29bddbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
working-directory: Scripts
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
GITHUB_EVENT_NAME: ${{ github.event_name }}
- uses: actions/upload-artifact@v4
with:
path: |
Expand Down
6 changes: 5 additions & 1 deletion Scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ fi
flutter config --no-cli-animations
flutter pub get
flutter gen-l10n
DEBUG=""
if [[ 'pull_request' == GITHUB_EVENT_NAME ]]; then
DEBUG="--debug"
fi
dart run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/Frontend/intn_defs.dart lib/l10n/*.arb
flutter pub run build_runner build --delete-conflicting-outputs
if [[ ! -v SKIP_BUILD ]]; then
flutter build apk --split-debug-info=./symbols --build-number="$BUILD_NUMBER" --build-name="$VERSION"
flutter build apk --split-debug-info=./symbols $DEBUG --build-number="$BUILD_NUMBER" --build-name="$VERSION"
flutter build appbundle --split-debug-info=./symbols --build-number="$BUILD_NUMBER" --build-name="$VERSION"
if [[ -v GITHUB_OUTPUT ]]; then
echo "SENTRY_DIST=$BUILD_NUMBER" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 29bddbd

Please sign in to comment.