Comments (6)
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:
- 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
) - You might be able to use Powershell aliases on Windows to alias
flutter
tofvm 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.
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.
Just wanted to check if there are any updates on this
from flutter_distributor.
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.
Thats great, so I will close this. Thanks
from flutter_distributor.
@Wizzel1 Please update to 0.3.4
from flutter_distributor.
Related Issues (20)
- Bad state: No element
- Multiple jobs with same platform and target
- Encountered error while creating the IPA: error: exportArchive: ipatool failed HOT 1
- macos build failed /bin/sh: 7z: command not found
- FormatException: Missing extension byte (at offset 9)
- makers/AppImage: LD_LIBRARY_PATH poorly configured in AppRun
- [Linux][AppImage] Not showing correct icon
- Build fails with an exception when building for Windows HOT 2
- 蒲公英换网址了? HOT 3
- AppImage packaging failed when copying shared libraries HOT 3
- 如何配置Release路径?Directory listing failed, path = 'build/windows/runner/Release\*' HOT 4
- Add support for `flutter build` option `--dart-define-from-file=` HOT 1
- flutter_distributor "package" how to specify "output" using commands HOT 1
- Windows Build Fails on Custom Flutter branch
- When building the .exe package, how to configure codesign? HOT 1
- add google play example document HOT 1
- App build number is set to build name when not provided
- Error when packing DEB package: end of file before value of field 'Uploaders' (missing final newline)
- Cannot install on windows11 HOT 1
- [Linux][deb,rpm] desktop file should not set [Version]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_distributor.