forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Windows build #94
Merged
Merged
Windows build #94
Conversation
This file contains 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
See shorebird/dev-3.24.5 for prior commit history.
* fix: update how we generate analyze_snapshot * formatting
# Conflicts: # DEPS
bryanoltman
commented
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
reviewed
Jan 3, 2025
eseidel
approved these changes
Jan 3, 2025
You can just call .get() to get the pointer out of unique_ptr.
https://en.cppreference.com/w/cpp/memory/unique_ptr
…On Fri, Jan 3, 2025 at 2:03 PM Bryan Oltman ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In shell/platform/windows/flutter_windows_engine.cc
<#94 (comment)>:
> + std::vector<char> version_data(version_info_size);
+ if (!GetFileVersionInfoA(module_path, handle, version_info_size,
+ version_data.data())) {
+ return -1;
This is used for a function that expects an LPVOID (void *) later on, and
it doesn't look like unique_ptr plays nicely with that
—
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADU2TPUCMXZ4HVXS3LE7BT2I4CKBAVCNFSM6AAAAABTZL5SSOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKMRZG43TGOJRHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
felangel
added a commit
that referenced
this pull request
Jan 14, 2025
* chore: squash all our changes to a single commit See shorebird/dev-3.24.5 for prior commit history. * fix: remove flutter/fml/size include * fix: use shorebird buildroot * fix: generate analyze snapshot for arm builds * formatting * fix: update how we generate analyze_snapshot (#92) * fix: update how we generate analyze_snapshot * formatting * build windows * Windows Support * Format * Make patching work * Formatting * Formatting * Formatting * Improve windows * Formatting * Formatting * Formatting * Revert unneeded changes * Revert changes * Bump updater rev * Remove prints * Cleanup * fix deps * Use correct local appdata path * Formatting * consolidate fetching build number and release version * format * remove unnecessary pointer * Introduce ReleaseVersion struct * formatting * Formatting * More formatting * Comments * Formatting * More comments * Formatting * Remove print statements * Remove comments * Use in-out param for ConfigureShorebird * formatting * fix deps * Remove extra include of updater.lib * Cleanup * cleanup * Formatting * Use ERROR_SUCCESS * Do not use Error Success * Add comment * GetLocalAppDataPath feedback * Refactor --------- Co-authored-by: Felix Angelov <[email protected]>
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.
Ready for review, with the caveat that there will be cleanup done as a followup PR to consolidate how/when ConfigureShorebird is called, with the eventual goal being a single ConfigureShorebird function.
Notes doc: https://docs.google.com/document/d/18t791EDSN03FbuZM9uE50CE36ZppF5i8PDaO7l6Bcms/edit?tab=t.0
Rust Setup
In
engine/src/third_party/updater
, run:Flutter Build
These commands were adapted from
ci\builders\windows_host_engine.json
Other notes
The ninja build sometimes gets stuck in the following loop and I don't know why: