#BIS Support

1 messages · Page 1 of 1 (latest)

hearty kraken
#

Why does it take so much time for patching sometimes? Does it mean we cannot always use patches? Or how do we know if the patch is working this time or not?

shorebird patch android --flavor prod --target lib/env/prod/main.dart -- --dart-define ....
✓ Fetching apps (0.6s)
✓ Building patch with Flutter 3.19.6 (4b22a31bd9) (20.7s)
✓ Detected release version 2.2.11+100 (0.3s)
✓ Fetching releases (0.5s)
Release was built with Flutter revision aee5222c0d52012f089564a8395826d56e7c2fe8
✓ Building patch (100.9s)
✓ Fetching release artifacts (1.1s)
✓ Fetching aab artifact (0.3s)
✓ Downloading release artifacts (1147.9s)
✓ Verifying patch can be applied to release (0.1s)
[WARN] Your app contains asset changes, which will not be included in the patch.
    Changed files:
        base/assets/flutter_assets/fonts/MaterialIcons-Regular.otf
Continue anyways? (y/N) Yes
✓ Creating artifacts (19.7s)

:rocket: Ready to publish a new patch!

:mobile_phone: App: appname (prod) (....)
:shaved_ice: Flavor: prod
:package: Release Version: 2.2.11+100
:joystick:  Platform: android [arm32 (1.58 MB), arm64 (1.49 MB), x86_64 (1.49 MB)]
:green_circle: Track: Production

Would you like to continue? (y/N) Yes
✓ Creating patch (2.2s)
✓ Uploading artifacts (7.3s)
✓ Fetching channels (0.4s)
✓ Promoting patch to stable (0.4s)

:white_check_mark: Published Patch 3!

Does using the Shorebird patch command or release command reduce the space on my laptop hard disk? If so, how can I clean up after releasing or patching?

#

@quaint spade moving here

#

Why does it take so much time for patching sometimes
In this case, it's because the release was built with a different version of Flutter

quaint spade
#

Oh, okay. Does it mean that while patching, the release version of the Flutter version is downloaded to the local PC and then patched?

hearty kraken
#

If it is not already present, yes

#

You can provide --release-version=1.2.3+4 (substituting your actual release version) to skip the first build

#

Does using the Shorebird patch command or release command reduce the space on my laptop hard disk? If so, how can I clean up after releasing or patching?
It shouldn't any more than flutter build would.

#

If you'd like, you can delete the build directory after releasing, but I don't imagine that build would be an especially large directory

quaint spade
#

okay thanks

hearty kraken
#

After an iOS build of a small app, I'm seeing my build directory take up 90.8 MB of space

quaint spade
#

Okay, I just used the patch command. After patch cmd, my free space was 7GB. I ran the 'flutter clean' cocmdmmand and now I have 12.78GB

#

I run this command every time. I am working on six ongoing Flutter projects.

for dir in */; do (cd "$dir" && flutter clean); done

dusty raft
#

@hearty kraken maybe an easy fix here is to print more details while it's downloading so it's not looking like it's stuck?

hearty kraken
dusty raft