diff --git a/.metadata b/.metadata index 3714e33d8..7907624d3 100644 --- a/.metadata +++ b/.metadata @@ -15,7 +15,7 @@ migration: - platform: root create_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2 base_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2 - - platform: windows + - platform: linux create_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2 base_revision: 9e1c857886f07d342cf106f2cd588bcd5e031bb2 diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 52de89d52..4b60a1a48 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -122,6 +122,12 @@ foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) COMPONENT Runtime) endforeach(bundled_library) +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + # Fully re-copy the assets directory on each build to avoid having stale files # from a previous install. set(FLUTTER_ASSET_DIR_NAME "flutter_assets")