-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native assets on pub #3693
Comments
Any updates on this? For Ideally, these binaries could be tied to the package version, and include some sort of signing or similar to increase trust in the downloaded binaries. |
Conclusion of an offline talk with @sigurdm and @jonasfj: This will not be supported anytime soon, as adding potentially large files to pub.dev and associating them with releases poses many challenges. |
That's reason for giving it a p4 or p3 label, not for closing it correct? |
We've been discussing this for a while, but I wanted to open an issue on the pub repo to track this.
In the context of
we should support uploading precompiled native assets to pub, so that pub can download them for the required target architectures.
If package authors precompile binaries, the current way of working is to either
bin/setup.dart
for Dart standalone and in the native build scripts for FFI plugins in Flutter, orThis has several drawbacks.
dart pub publish
(copying over Mac binaries over to Linux for example) (for option 2).pub get
downloads for all target architectures (for option 2).It would be better if binaries can be uploaded to pub.
The best workflow would be if the binaries can be build on the (Github) CI, and then automatically uploaded to pub. Together with the commit-tagging-leading-to-releases-on-pub. This way package authors don't have to have access to MacOS, Linux and Windows machines to cover all target architectures.
In order to work in this direction we need to solve many design questions. Some questions that come to mind:
The text was updated successfully, but these errors were encountered: