From 1ae0c8f14b63f93b11c2a094745e780ece2f282d Mon Sep 17 00:00:00 2001 From: enrique-lozano Date: Tue, 30 Apr 2024 16:50:33 +0200 Subject: [PATCH] build: Rebuild Windows platform --- windows/CMakeLists.txt | 8 +++++++- windows/runner/Runner.rc | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index a822eea5..d0e4a739 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -8,7 +8,7 @@ set(BINARY_NAME "monekin") # Explicitly opt in to modern CMake behaviors to avoid warnings with recent # versions of CMake. -cmake_policy(SET CMP0063 NEW) +cmake_policy(VERSION 3.14...3.25) # Define build configuration option. get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) @@ -87,6 +87,12 @@ if(PLUGIN_BUNDLED_LIBRARIES) COMPONENT Runtime) endif() +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/") +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") diff --git a/windows/runner/Runner.rc b/windows/runner/Runner.rc index aa053297..3cacc56d 100644 --- a/windows/runner/Runner.rc +++ b/windows/runner/Runner.rc @@ -89,11 +89,11 @@ BEGIN BEGIN BLOCK "040904e4" BEGIN - VALUE "CompanyName", "com.example" "\0" + VALUE "CompanyName", "com.monekin" "\0" VALUE "FileDescription", "monekin" "\0" VALUE "FileVersion", VERSION_AS_STRING "\0" VALUE "InternalName", "monekin" "\0" - VALUE "LegalCopyright", "Copyright (C) 2023 com.example. All rights reserved." "\0" + VALUE "LegalCopyright", "Copyright (C) 2024 com.monekin. All rights reserved." "\0" VALUE "OriginalFilename", "monekin.exe" "\0" VALUE "ProductName", "monekin" "\0" VALUE "ProductVersion", VERSION_AS_STRING "\0"