feat(win32): support prebuilt assets in the build hook#1064
Merged
halildurmus merged 1 commit intomainfrom Apr 22, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1064 +/- ##
==========================================
+ Coverage 85.69% 87.92% +2.23%
==========================================
Files 91 216 +125
Lines 5202 10530 +5328
==========================================
+ Hits 4458 9259 +4801
- Misses 744 1271 +527
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Description
The build hook currently compiles native code from C source on the user's machine using
package:native_toolchain_c, which requires MSVC to be installed. This is a significant friction point for users that don't have the necessary tools installed — even when they're not targeting Windows desktop themselves (e.g., they just havepackage:win32as a transitive dependency).This PR changes the build hook to download prebuilt binaries from the GitHub release artifacts instead of compiling from source, by default.
Key details
.dllassets are downloaded from the corresponding GitHub release tag at build timelocal_builduser-define in theirpubspec.yaml:Related Issue
fluttercommunity/plus_plugins#3794
Type of Change
feat– New feature (non-breaking change that adds functionality)fix– Bug fix (non-breaking change that fixes an issue)!– Breaking change (fix or feature that causes existing functionality to change)perf– Performance improvementrefactor– Code refactor (no functionality change)docs– Documentation updatestyle– Code style changes (formatting, renaming, etc.)test– Test update or additionbuild– Build related changesci– CI related changeschore– Chore (maintenance, non-production code change)revert– Revert a previous commit