shorebirdtech / shorebird

Code Push for Flutter and other tools for Flutter businesses.
https://shorebird.dev
Other
2.26k stars 133 forks source link

fix: can't run --no-tree-shake-icons #2393

Closed Tubbster-UX closed 2 months ago

Tubbster-UX commented 2 months ago

App ID: 9ab1380c-7080-4dbf-beba-95adcec1734b

Description

so my app needs "--no-tree-shake-icons" to be able to build

Steps To Reproduce

  1. Run This 'shorebird release android -- --no-tree-shake-icons' or 'shorebird release android --no-tree-shake-icons'
  2. See error 'Could not find an option named "-no-tree-shake-icons". To proxy an option to the flutter command, use the '--' --

Expected Behavior

to allow me to run args to flutter build

Tubbster-UX commented 2 months ago

I learned to read the Docs....

Could not find an option named “dart define” when using the -- separator Powershell handles the -- separator differently than other shells (see this StackOverflow answer for more info). To work around this, you can quote the -- separator. For example:

Terminal window shorebird release android '--' --dart-define=foo=bar