Open RustamG opened 2 years ago
Same problem here, but with just updating my CMakeLists.txt to set BINARY_NAME to a different name for my .exe (from "old_name" to "newname"). In order to work around this issue, I had to change the "name" field in pubspec.yaml (and then update all my includes in all my files).
Hello.
I want the app .exe file name to be different depending on the environment I build it for (i.e. "App_QA" or "App_DEV", etc.). So I can have multiple apps installed at the same time, pointing to different servers. This can be accomplished by changing the
BINARY_NAME
in CMakeLists.txt (official manual).Currently, installer_windows.dart uses
name
from pubspec.yaml to find the .exe file for changing the icon and render it to nuspec template: https://github.com/anaisbetts/squirrel-flutter/blob/master/bin/installer_windows.dart#L137-L140 https://github.com/anaisbetts/squirrel-flutter/blob/master/bin/installer_windows.dart#L228-L232 https://github.com/anaisbetts/squirrel-flutter/blob/master/bin/installer_windows.dart#L241-L250So if I change the .exe name, the script doesn't find it:
The best solution for me would be able to pass the arguments to the script via command line.