Skip to content

Commit

Permalink
Merge pull request #1519 from d-loose/snapcraft-melos
Browse files Browse the repository at this point in the history
feat(snap): use melos in snapcraft.yaml
  • Loading branch information
d-loose authored Dec 12, 2023
2 parents 698c763 + ac19033 commit 30c26b5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ parts:
source: .
plugin: nil
override-build: |
cd packages/app_center
set -eux
dart pub global activate melos
# when building locally artifacts can pollute the container and cause builds to fail
# this helps increase reliability for local builds
flutter clean
# work around pub get stack overflow # https://github.com/dart-lang/sdk/issues/51068#issuecomment-1396588253
set +e
dart pub get
set -eux
dart pub global run melos clean
dart pub global run melos bootstrap
cd packages/app_center
flutter build linux --release -v
mkdir -p $CRAFT_PART_INSTALL/bin/
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
Expand Down

0 comments on commit 30c26b5

Please sign in to comment.