Open hadysata opened 1 year ago
Oops, i think this should be on https://github.com/shorebirdtech/docs
It's fine they're easy to move around :)
@nilsreichardt do you have suggestions for what we should do with this? :) Also feel empowered to redirect us to the right codemagic folks.
Yes, I know how we can integrate this 👍 Cool, script! I'll update the docs in the next few days 👍
nice hack @hadysata
Hey Shorebird team! 🌟
First of all, let me express my appreciation for your amazing work on Shorebird 🎉! We're all super excited that code push is finally possible on Flutter! 🥳
I wanted to share a solution I found for using Shorebird with the Codemagic Workflow Editor. As per your documentation, it is mentioned that Codemagic Workflow Editor doesn't support changing the build command, which is required for using Shorebird. I came up with a workaround that allows me to override the default flutter build command with Shorebird's command. I have tested this, and it works successfully on Codemagic.
Here's the setup 🎈:
setup_shorebird.sh
) with the following content:This script downloads and sets up Shorebird, then overrides the default flutter build command.
In the Codemagic Workflow Editor, add the
setup_shorebird.sh
script to the "Pre-build script" section.Add the
SHOREBIRD_TOKEN
environment variable in the "Environment variables" section of the Codemagic Workflow Editor.And voilà! 🎩✨ After completing these steps, the Codemagic build process should use Shorebird's command instead of the default
flutter build
.I hope this workaround helps others who are looking to use Shorebird with Codemagic Workflow Editor 🌈.
Once again, thank you for your fantastic work on Shorebird 🙌!