Skip to content

Support flavors for Windows #98994

Description

@krll-kov

Steps to reproduce:

  • Create new Flutter project on Windows
  • Go to windows/CMakeLists.txt and replace
set(BINARY_NAME "tesee1")

with

set(APPLICATION_TYPE 0)
add_compile_definitions(IS_EXLOADER=${APPLICATION_TYPE})

if(APPLICATION_TYPE)
  set(BINARY_NAME "tesee1")
else()
  set(BINARY_NAME "example2")
endif()
  • Start application(clean build folder if you've compiled app before)

For some reason flutter creates .exe file with filename example2 but tries to start tesee1
image

Flutter version: 2.10.2 from stable channel

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: desktopRunning on desktopc: new featureNothing broken; request for a new capabilityplatform-windowsBuilding on or for Windows specificallyteam-windowsOwned by the Windows platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-windowsTriaged by the Windows platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions