feat: publish prebuilt native assets - #315
Open
HamdaanAliQuatil wants to merge 1 commit into
Open
Conversation
HamdaanAliQuatil
force-pushed
the
prebuilt-native-assets
branch
from
July 12, 2026 09:37
cfe675a to
acb20d2
Compare
jonasfj
reviewed
Jul 13, 2026
Collaborator
|
Hi @HamdaanAliQuatil , would you mind taking a look at #325 ? I implemented basically the same thing, based on https://github.com/unicode-org/icu4x/blob/main/ffi/dart/hook/build.dart, which works quite well. |
This was referenced Jul 20, 2026
HamdaanAliQuatil
force-pushed
the
prebuilt-native-assets
branch
from
August 18, 2026 18:20
bf79e79 to
c50453d
Compare
HamdaanAliQuatil
force-pushed
the
prebuilt-native-assets
branch
from
August 18, 2026 18:25
c50453d to
9592347
Compare
HamdaanAliQuatil
force-pushed
the
prebuilt-native-assets
branch
from
August 18, 2026 18:38
9592347 to
43539a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This builds trusted desktop native libraries during the pub.dev release workflow and includes them in the published package without committing binaries to the repository.
What changes:
hook/build.dartuses a matching packaged library fromprebuilt/<target>/, falling back to the existing CMake source build when no prebuilt is available.build_from_source: trueto bypass an available prebuilt explicitly.Local validation:
dart analyze hook/build.dartdart format --output=none --set-exit-if-changed hook/build.dartdart test -p vm test/aes_ctr_counter_wrap_test.dartCI assembled the four-platform pub archive at 6.34 MiB compressed (6,646,685 bytes). The four native libraries are 8.61 MiB uncompressed (9,032,224 bytes).