From e526e6341617dc78f271fa281d82bec31a48655f Mon Sep 17 00:00:00 2001 From: ndonkoHenri Date: Sat, 24 Jan 2026 09:11:05 +0100 Subject: [PATCH] update linux config --- cookiecutter.json | 3 ++- {{cookiecutter.out_dir}}/linux/CMakeLists.txt | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cookiecutter.json b/cookiecutter.json index 4c4e600..4651be4 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -4,6 +4,7 @@ "project_name": "", "project_name_slug": "", "project_description": "", + "artifact_name": "{{ cookiecutter.project_name }}", "product_name": "{{ cookiecutter.project_name }}", "org_name": "{{ cookiecutter.org_name if 'org_name' in cookiecutter else 'com.flet' }}", "company_name": "Your Company", @@ -31,4 +32,4 @@ "options": null, "pyproject": null, "_extensions": ["cookiecutter_extensions.FletExtension"] -} \ No newline at end of file +} diff --git a/{{cookiecutter.out_dir}}/linux/CMakeLists.txt b/{{cookiecutter.out_dir}}/linux/CMakeLists.txt index b70eb7c..360ff4f 100644 --- a/{{cookiecutter.out_dir}}/linux/CMakeLists.txt +++ b/{{cookiecutter.out_dir}}/linux/CMakeLists.txt @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.10) project(runner LANGUAGES CXX) -# The name of the executable created for the application. Change this to change -# the on-disk name of your application. +# The name of the application target. The on-disk name is set as OUTPUT_NAME to keep +# Flutter tooling behavior intact. set(BINARY_NAME "{{ cookiecutter.project_name }}") # The unique GTK application identifier for this application. See: # https://wiki.gnome.org/HowDoI/ChooseApplicationID @@ -84,6 +84,7 @@ add_dependencies(${BINARY_NAME} flutter_assemble) # the default top-level location. set_target_properties(${BINARY_NAME} PROPERTIES + OUTPUT_NAME "{{ cookiecutter.artifact_name }}" RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" )