Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Conversation

@bryanoltman
Copy link

Attempting to get the shorebird_* functions from updater.h to be exposed in flutter_windows.dll so they can be used by package:shorebird_code_push via ffi.

None of this works yet.

felangel and others added 23 commits January 14, 2025 14:38
See shorebird/dev-3.24.5 for prior commit history.
* fix: update how we generate analyze_snapshot

* formatting
* 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 <felix@shorebird.dev>
* feat: support intel macs

* formatting

* formatting

* don't use linker on macos

* cleanup

* formatting

* bump updater rev

* SHOREBIRD_USE_LINKER -> SHOREBIRD_USE_INTERPRETER
* Add shorebird support to x64 Linux targets

* formatting

* read app id and version from files

* Cleanup

* Cleanup

* add comment
kDartIsolateSnapshotInstructions;
InternalFlutterGpu*;
kInternalFlutterGpu*;
_shorebird*;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't appear used on windows. flutter/build.gn:

config("export_dynamic_symbols") {
  # --dynamic-list is the GNU linker syntax supported by ELF linkers.
  # -exported_symbols_list is the macOS linker syntax. The different flags
  # accept files formatted differently, so we have exported_symbols.sym for GNU
  # linker syntax, and exported_symbols_mac.sym for the macOS linker syntax.
  if (is_linux || is_fuchsia) {
    inputs = [ "//flutter/common/exported_symbols.sym" ]
    ldflags = [ "-Wl,--dynamic-list=" + rebase_path(inputs[0], root_build_dir) ]
  } else if (is_mac) {
    inputs = [ "//flutter/common/exported_symbols_mac.sym" ]
    ldflags = [
      "-Xlinker",
      "-exported_symbols_list",
      "-Xlinker",
      rebase_path(inputs[0], root_build_dir),
    ]
  }
}

Base automatically changed from bo/move-updater to shorebird/dev February 4, 2025 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants