Skip to main content

Python Flutter Extension

Project description

Attacus :butterfly: :snake:

Flutter SDL Python

Flutter

SDL

Required

Optional

Clone

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

Extra Steps

You need to download the Flutter engine binaries from: Custom-Flutter-Engine-Embedders

Extract to: [project-root]/binaries/flutter

Development

Tool Chain

cxbuild

pybind11

Develop

hatch shell
procure
cxbuild develop

Release

cxbuild

Quick Start

git clone --recursive https://github.com/kfields/attacus
cd attacus
mkdir build
cd build
cmake ..

Or

mkdir build-debug
cd build-debug
cmake -DCMAKE_BUILD_TYPE=Debug ..

Wayland

sudo apt install libwayland-dev
sudo apt install libxkbcommon-dev
sudo add-apt-repository ppa:christianrauch/libdecoration

cmake -DATT_WM_WAYLAND=ON -DCMAKE_BUILD_TYPE=Debug ..

Glad

v1
glad --generator c --no-loader --out-path src

v2
glad --api gl:core --out-path src/glad c

Flutter Custom Devices

flutter channel master
flutter config --enable-custom-devices
flutter custom-devices

C:\Users\kurti\AppData\Roaming.flutter_custom_devices.json

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

Flutter Embedder

Get the SHA of the Flutter engine you wish to use

cd flutter/bin/internal
cat engine.version

Flutter Examples

flutter build bundle
python main.py

or

flutter run

icudtl.dat

flutter\bin\cache\artifacts\engine\windows-x64\icudtl.dat

I'm manually copying this into the build directory. Not good. It needs to be copied over automatically

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

attacus-0.1.0-cp310-cp310-win_amd64.whl (898.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page