Coder Social home page Coder Social logo

Comments (6)

cybrox avatar cybrox commented on July 21, 2024

I have not personally worked with FVM, but if I understand this correctly, the issue is that flutter_distributor attempts to run multiple commands using the flutter command but this does not work on your system, since FVM does not register it but you instead use fvm flutter ... in everyday use, right?

Currently, I don't think flutter_distributor offers a way to change the command it is using. A few possible solutions that come to mind are:

  1. FVM - like most other version management systems - most likely installs the different versions of Flutter it uses in a cache directory. Get the path to the flutter version you want to use and add it to your path temporarily in the shell you're working (e.g. set PATH=%PATH%;C:\path\to\chachedir\flutter-3.0\bin)
  2. You might be able to use Powershell aliases on Windows to alias flutter to fvm flutter ... but I'm afraid I don't know much about powershell.

Ideally, we'd add a possiblity to change the main Flutter command to flutter_distributor but these are some workarounds you could explore in the meantime.

from flutter_distributor.

Wizzel1 avatar Wizzel1 commented on July 21, 2024

I have not personally worked with FVM, but if I understand this correctly, the issue is that flutter_distributor attempts to run > multiple commands using the flutter command but this does not work on your system, since FVM does not register it but you instead use fvm flutter ... in everyday use, right?

Yes, that is correct.

I will try your recommended workarounds, thanks for the quick response!

from flutter_distributor.

Wizzel1 avatar Wizzel1 commented on July 21, 2024

Just wanted to check if there are any updates on this

from flutter_distributor.

lijy91 avatar lijy91 commented on July 21, 2024

Please see this commit 8b8acf0 , Will be able to specify flutter version for any job. By the way, even the required variable for publisher can be defined into the job.

output: dist/
variables:
  FLUTTER_ROOT: ~/fvm/versions/3.10.0
releases:
  - variables:
      FLUTTER_ROOT: ~/fvm/versions/3.10.1
    name: dev-release
    jobs:
      - name: android-aab
        variables:
          FLUTTER_ROOT: ~/fvm/versions/3.10.2
        package:
          platform: android
          target: aab
          build_args:
            target-platform: android-arm,android-arm64

from flutter_distributor.

Wizzel1 avatar Wizzel1 commented on July 21, 2024

Thats great, so I will close this. Thanks

from flutter_distributor.

lijy91 avatar lijy91 commented on July 21, 2024

@Wizzel1 Please update to 0.3.4

from flutter_distributor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.