The Runner.rc file manages the Windows-specific application metadata, including the icon, versioning, and product information.
Versioning
The versioning is driven by Flutter build environment variables. If these are not provided during the build process, the app defaults to 1.0.0.
FLUTTER_BUILD_NUMBER: Used to define VERSION_AS_NUMBER (e.g., 1,0,0).FLUTTER_BUILD_NAME: Used to define VERSION_AS_STRING (e.g., "1.0.0").
Metadata Fields
You can modify the following string values within the StringFileInfo block to customize the Windows executable properties:
CompanyName: The company name associated with the app.FileDescription: A brief description of the file.FileVersion: The current version string.InternalName: The internal name of the application.LegalCopyright: The copyright notice.OriginalFilename: The original filename of the executable.ProductName: The name of the product.ProductVersion: The product version string.
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "com.example" "\0"
VALUE "FileDescription", "flutter_pos_app" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "flutter_pos_app" "\0"
VALUE "LegalCopyright", "Copyright (C) 2022 com.example. All rights reserved." "\0"
VALUE "OriginalFilename", "flutter_pos_app.exe" "\0"
VALUE "ProductName", "flutter_pos_app" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
END
END