Giter Club home page Giter Club logo

Comments (8)

jwinarske avatar jwinarske commented on September 24, 2024

@bernardcraddock For desktop workflow one of my devs is working on a python script that setups a flutter workspace. It pulls all the parts for running on desktop. Hoping to published it to meta-flutter by next Wednesday.

from ivi-homescreen.

jwinarske avatar jwinarske commented on September 24, 2024

The engine for desktop (x86_64) is coming from Flutter archive.

from ivi-homescreen.

bernardcraddock avatar bernardcraddock commented on September 24, 2024

@jwinarske - perfect thank you - i'll wait for the script

from ivi-homescreen.

bernardcraddock avatar bernardcraddock commented on September 24, 2024

@jwinarske is the python script done if so where is it?
If not done are you able to provide me access to manually run your workflow?

I'm requesting for 2 reasons

  1. Review real time exactly what it's doing and how - which will be enough for me
  2. Will build ped workflow once i'm comfortable with process

from ivi-homescreen.

jwinarske avatar jwinarske commented on September 24, 2024

@bernardcraddock As of right now it's 93% feature complete. You're welcome to start using it.

https://github.com/meta-flutter/meta-flutter/tree/jw/custom-devices/tools

When this branch is gone, it means it's been merged into the kirkstone branch.

If you add your GitHub dev token to "github_token" in the flutter_workspace_config.json file, then the script will download/install flutter-auto, as well as install my meta-flutter AGL QEMU image (integration reference).

The process is run the python script from location where you want the Flutter Workspace.

Sample Usage

cd $HOME
mkdir test && cd test
git clone -b jw/custom-devices https://github.com/meta-flutter/meta-flutter
mkdir workspace && cd workspace
 ../meta-flutter/tools/setup_flutter_workspace.py --workspace-cfg ../meta-flutter/tools/flutter_workspace_config.json 

Once this is complete from your development terminal run:

source $HOME/test/workspace/setup_env.sh

then navigate to your app folder, and run

flutter run

The last items I'm working out:

  1. custom-device working on anything other than master. Flutter stable needs fix from master to enable.
  2. Automate target debug image query of Flutter SDK version.

So running on Ubuntu (x86_64) debugging with flutter-auto is currently functioning. The caveat is that you need a functioning Vulkan stack on your desktop, which is intentional to prevent loading your host CPU.

If you have any input or feedback on the script please create an issue on meta-flutter so others can benefit from it.

from ivi-homescreen.

jwinarske avatar jwinarske commented on September 24, 2024

The intent is that an organization tailors the json config to their dev environment.

from ivi-homescreen.

jwinarske avatar jwinarske commented on September 24, 2024

So once you have your custom flutter_workspace_config.json, you create the root workspace folder, and copy your flutter_workspace_config.json in. Then run:

curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/meta-flutter/meta-flutter/jw/custom-devices/tools/setup_flutter_workspace.py | python3

Once jw/custom-devices is merged the link will be:

curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/meta-flutter/meta-flutter/kirkstone/tools/setup_flutter_workspace.py | python3

from ivi-homescreen.

jwinarske avatar jwinarske commented on September 24, 2024

Script is ready to use and has been merged to kirkstone.

mkdir workspace && cd workspace
https://raw.githubusercontent.com/meta-flutter/meta-flutter/kirkstone/tools/flutter_workspace_config.json
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/meta-flutter/meta-flutter/kirkstone/tools/setup_flutter_workspace.py | python3

Then open your working terminal and run

qemu_run
source "workspace folder"/setup_env.sh
cd "your app"
flutter run

Select AGL-Qemu to run on the emulator, or select flutter-auto to run on desktop.

The flutter-auto desktop build defaults to using the Vulkan backend.

from ivi-homescreen.

Related Issues (17)

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.