Skip to content

crungelab/attacus

Repository files navigation

Attacus 🐍 🦋

Python Flutter Extension

Flutter

Flutter Embedder

SDL

Development

Required

Optional

Clone

git clone https://github.com/crungelab/attacus
cd attacus

Tool Chain

cxbuild

pybind11

Develop

hatch shell
procure
cxbuild develop

Build

cxbuild

Visual Studio Code

hatch shell
code --reuse-window .

This will enable and display the location of your .flutter_custom_devices.json file

flutter config --enable-custom-devices
flutter custom-devices

Add this to your .flutter_custom_devices.json file

    {
      "id": "attacus",
      "label": "Attacus",
      "sdkNameAndVersion": "Attacus 0.1",
      "platform": null,
      "enabled": true,
      "ping": [
        "ping",
        "-n",
        "1",
        "-w",
        "500",
        "localhost"
      ],
      "pingSuccessRegex": "[<=]\\d+ms",
      "postBuild": [
        "python",
        "-m",
        "attacus.post_build"
      ],
      "install": [
        "python",
        "-m",
        "attacus.install"
      ],
      "uninstall": [
        "python",
        "-m",
        "attacus.uninstall"
      ],
      "runDebug": [
        "python",
        "main.py"
      ],
      "forwardPort": null,
      "forwardPortSuccessRegex": null,
      "screenshot": null
    }

Examples

flutter build bundle
python main.py

or

flutter run

Flutter Engine

flutter build bundle --local-engine=host_debug_unopt

./flutter/tools/gn --runtime-mode=debug --unoptimized --no-stripped --no-goma ninja -C out/host_debug_unopt

Releases

No releases published

Packages

No packages published