From a36034542ea85e6cec9460a93322bbe763b89b6a Mon Sep 17 00:00:00 2001 From: D Delmar Davis Date: Tue, 28 Apr 2026 13:43:16 -0700 Subject: document the good --- .gitignore | 2 +- README.md | 114 ++++++++++++++++++++++++++-------------------- docs/images/flet-run.jpg | Bin 0 -> 50140 bytes docs/images/hello-app.jpg | Bin 0 -> 112135 bytes pyproject.toml | 8 ++-- 5 files changed, 69 insertions(+), 55 deletions(-) create mode 100644 docs/images/flet-run.jpg create mode 100644 docs/images/hello-app.jpg diff --git a/.gitignore b/.gitignore index adb31b9..28715f0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ __pycache__/ *.py[cod] *$py.class - +.DS_Store # C extensions *.so diff --git a/README.md b/README.md index 299e825..f4dd154 100644 --- a/README.md +++ b/README.md @@ -1,69 +1,83 @@ -# Hello app +# tryfle A look at flet for building cross platform apps -## Run the app +## Flet on macos (tahoe) -### uv +Installing and trying flet on macos was relatively painless. -Run as a desktop app: - -```bash -uv run flet run -``` - -Run as a web app: - -```bash -uv run flet run --web -``` - -For more details on running the app, refer to the [Getting Started Guide](https://flet.dev/docs/). - -## Build the app - -### Android - -```bash -flet build apk -v +### flet run on macos +``` sh +git clone git@github.com:feurig/tryfle.git +cd tryfle +flet create --project-name=hello +flet run ``` -For more details on building and signing `.apk` or `.aab`, refer to the [Android Packaging Guide](https://flet.dev/docs/publish/android/). - -### iOS +![fletrunning](docs/images/flet-run.jpg) -```bash -flet build ipa -v -``` +Which is pretty damned cool! -For more details on building and signing `.ipa`, refer to the [iOS Packaging Guide](https://flet.dev/docs/publish/ios/). +### flet build for macos -### macOS +We are supposed to be able to build binaries so.... -```bash +```sh flet build macos -v ``` - -For more details on building macOS package, refer to the [macOS Packaging Guide](https://flet.dev/docs/publish/macos/). - -### Linux - -```bash -flet build linux -v +#### fails + +flet build uses a pile of google provided ruby named flutter. One of its dependencies is cocoapods. Which doesn't play well with the arcane version of ruby that is still the default on macos tahoe. + +And installing ruby 3 or 4 on macos is just a pile. + +```sh +sudo gem install cocoapods +gem install ffi -v 1.17.4 +sudo gem install ffi -v 1.17.4 +# FAILS !!!! +brew install ruby +brew install ruby3 +brew install ruby@3.4 +type ruby +which ruby +ruby --version +brew install ruby +brew install ruby@3.4 +echo "eval $(/opt/homebrew/bin/brew shellenv)" >> ~/.zprofile +eval $(/usr/local/bin/brew shellenv) +# FAILS !!!! then some googles.... +brew install rbenv +/usr/local/bin/rbenv install --list-all +brew show ruby +brew info ruby +/usr/local/bin/rbenv install 4.0.0 +# FAILS !!!! +/usr/local/bin/rbenv install 3.3.11 +# FAILS !!!! +brew install openssl +brew reinstall openssl +/usr/local/bin/rbenv install 4.0.0 +# FAILS !!!! +brew reinstall libopenssl +brew info ruby +/usr/local/bin/rbenv install 4.0.3 +# FAILS !!!! ...more googles... +brew install openssl@1.1 +export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"\nrbenv install 3.0.6 +export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@3)"\n\nrbenv install 3.3.3 +# FAILS !!!! ``` -For more details on building Linux package, refer to the [Linux Packaging Guide](https://flet.dev/docs/publish/linux/). +#### DOH! homebrew has a cocoapods -### Windows - -```bash -flet build windows -v +```sh +brew install cocoapods +brew link --overwrite cocoapods ``` -For more details on building Windows package, refer to the [Windows Packaging Guide](https://flet.dev/docs/publish/windows/). +#### Neeto!!! -### Web +![hello app](docs/images/hello-app.jpg) -```bash -flet build web -v -``` +## References -For more details on building Web app, refer to the [Web Packaging Guide](https://flet.dev/docs/publish/web/). +https://dev.to/flet/tutorial-build-and-package-a-multi-platform-desktop-app-in-python-3ncc \ No newline at end of file diff --git a/docs/images/flet-run.jpg b/docs/images/flet-run.jpg new file mode 100644 index 0000000..fbddd59 Binary files /dev/null and b/docs/images/flet-run.jpg differ diff --git a/docs/images/hello-app.jpg b/docs/images/hello-app.jpg new file mode 100644 index 0000000..b8f047f Binary files /dev/null and b/docs/images/hello-app.jpg differ diff --git a/pyproject.toml b/pyproject.toml index 7ea2b6c..2452638 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "" readme = "README.md" requires-python = ">=3.10" authors = [ - { name = "Flet developer", email = "you@example.com" } + { name = "D. Delmar Davis", email = "suspectdevices.com" } ] dependencies = [ "flet>=0.84.0" @@ -19,10 +19,10 @@ dev = [ ] [tool.flet] -org = "com.mycompany" +org = "com.suspectdevices.com" product = "hello" -company = "Flet" -copyright = "Copyright (C) 2023-2026 by Flet" +company = "Suspect Devices" +copyright = "Copyright (C) 2023-2026 by D Delmar Davis" [tool.flet.app] path = "src" -- cgit v1.2.3