nissy-fmc

A Rubik's cube FMC assistant
git clone https://git.tronto.net/nissy-fmc
Download | Log | Files | Refs | README | LICENSE

commit 136dbb8d07d8d5f09959b90670f87dc5f6b5e0f8
parent cfe5c0e2be36019797efbd299763400d7578de7f
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Mon, 19 Jun 2023 18:04:37 +0200

Added tables file to flutter_ffi assets

Diffstat:
MMakefile | 11++++++++---
Mflutter_ffi/pubspec.yaml | 12++----------
2 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/Makefile b/Makefile @@ -20,16 +20,21 @@ all: nissy clean: rm -rf nissy nissy_flutter nissy_flutter_ffi -nissy: clean +nissy_flutter: flutter create nissy_flutter + cp -R flutter/* nissy_flutter/ + +nissy_flutter_ffi: tables flutter create --template=plugin_ffi \ --platforms=linux,android,windows,macos,ios nissy_flutter_ffi - cp -R flutter/* nissy_flutter/ rm -rf nissy_flutter_ffi/src cp -R flutter_ffi/* nissy_flutter_ffi/ cp src/* nissy_flutter_ffi/src/ cd nissy_flutter_ffi && \ flutter pub run ffigen --config ffigen.yaml + cp tables nissy_flutter_ffi/data/ + +nissy: clean nissy_flutter nissy_flutter_ffi debug: ${CC} ${DBFLAGS} -o nissy cli/*.c src/*.c @@ -37,7 +42,7 @@ debug: cleantables: rm -rf tables -tables: cleantables +tables: ${CC} ${DBFLAGS} -o buildtables build/*.c src/*.c ./buildtables rm buildtables diff --git a/flutter_ffi/pubspec.yaml b/flutter_ffi/pubspec.yaml @@ -32,13 +32,5 @@ flutter: windows: ffiPlugin: true - # To add assets to your plugin package, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # - # For details regarding assets in packages, see - # https://flutter.dev/assets-and-images/#from-packages - # - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware + assets: + - data/