leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
834 stars 116 forks source link

Using flutter distributor with FVM #191

Closed werner-scholtz closed 3 months ago

werner-scholtz commented 3 months ago

Hi, is there a way to configure flutter_distributor to run all flutter commands with fvm ? ex. fvm flutter run, fvm flutter build

cybrox commented 3 months ago

AFAIK there is currently no way to easily override the command that is used by flutter_distributor.

I don't use fvm myself but their docs state that the active version is symlinked to .fvm/flutter_sdk/bin/flutter. If that's the case, you can use the FLUTTER_ROOT environment variable that is supported by flutter_distributor here.

So instead of flutter_distributor release ... you would use FLUTTER_ROOT=.fvm/flutter_sdk flutter_distributor release ....

lijy91 commented 3 months ago

Please see: https://github.com/leanflutter/flutter_distributor/issues/107#issuecomment-1570480975

werner-scholtz commented 3 months ago

Thanks for the epic package :D