Coder Social home page Coder Social logo

snapp-x / snapp_installer Goto Github PK

View Code? Open in Web Editor NEW
36.0 2.0 2.0 988 KB

command-line tool that simplifies the installation and development of Flutter applications on your Raspberry Pi. This Bash script automates the process of setting up the Flutter environment, installs essential files and dependencies, and offers additional features like running your Flutter apps in kiosk mode.

License: MIT License

Shell 100.00%
command-line-tool flutter raspberry-pi

snapp_installer's Issues

Error: Unable to 'pub upgrade' flutter tool.

Hi, I'm trying to install flutter via snapp_installer install and get the following error


********* Check Flutter Channel *********


Checking Flutter channel

Downloading Linux arm64 Dart SDK from Flutter engine c4cd48e186460b32d44585ce3c103271ab676355...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 212M 100 212M 0 0 5483k 0 0:00:39 0:00:39 --:--:-- 6186k
Building flutter tool...
/home/aka/sdk/flutter/bin/internal/shared.sh: line 23: /home/aka/sdk/flutter/bin/cache/dart-sdk/bin/dart: cannot execute: required file not found
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
/home/aka/sdk/flutter/bin/internal/shared.sh: line 23: /home/aka/sdk/flutter/bin/cache/dart-sdk/bin/dart: cannot execute: required file not found
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (8 tries left)
/home/aka/sdk/flutter/bin/internal/shared.sh: line 23: /home/aka/sdk/flutter/bin/cache/dart-sdk/bin/dart: cannot execute: required file not found
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (7 tries left)
/home/aka/sdk/flutter/bin/internal/shared.sh: line 23: /home/aka/sdk/flutter/bin/cache/dart-sdk/bin/dart: cannot execute: required file not found

Flutter Doctor:


************ Doctor summary: ************


Installation:

✓ | Linux Dependency packages | curl git unzip ...
* ✓ curl is installed
* ✓ git is installed
* ✓ unzip is installed
* ✓ xz-utils is installed
* ✓ zip is installed
* ✓ libglu1-mesa is installed
✓ | Flutter folder is located in /home/aka/sdk/flutter.
Flutter command not found globally. Checking common directories...
Flutter installation found at: /home/aka/sdk/flutter/bin/flutter
✓ | Flutter command is available in the PATH.
✓ | Flutter command is defined in .bashrc file.
✓ | Linux development packages | clang cmake ninja-build ...
* ✓ clang is installed
* ✓ cmake is installed
* ✓ ninja-build is installed
* ✓ pkg-config is installed
* ✓ libgtk-3-dev is installed
* ✓ liblzma-dev is installed

Kiosk Mode: unknown

✘ | Auto login is enabled in your device
✘ | Kiosk mode is enabled
✘ | Kiosk mode packages | xset xdotool ...
* ✘ x11-xserver-utils is missing
* ✘ xdotool is missing

System info:

RPI:
Raspberry PI 4B 8GB
Raspian 32Bit Headless

Host:
Windows 11
Flutter Version: 3.19.6

Let me know if you need more informations.

kind regards

Feature request - SSH start flutter application & Vertical monitor

Hi @payam-zahedi at first compliments for the great tool, very useful!

I'm planning on using this tool in production for an embedded kiosk device, but i would need to do this two things:

  • launch the app using remote ssh (now it's returning error: (app:2438): Gtk-WARNING **: 10:24:49.602: cannot open display)
  • Launch app full screen in monitor at 90°

Thank you so much !

Can't install, stuck on "Got dependencies."

I've tried everything already, everytime getting stuck on it and then process get's killed or system frezees.

*****************************************
********* Check Flutter Channel *********
*****************************************
Checking Flutter channel

Downloading Linux arm64 Dart SDK from Flutter engine e76c956498841e1ab458577d3892003e553e4f3c...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  212M  100  212M    0     0  7609k      0  0:00:28  0:00:28 --:--:-- 8615k
Building flutter tool...
Resolving dependencies... (10.6s)
Got dependencies.
/home/rostopira/sdk/flutter/bin/internal/shared.sh: line 183:  3421 Killed                  "$DART" --verbosity=error --disable-dart-dev $FLUTTER_TOOL_ARGS --snapshot="$SNAPSHOT_PATH" --snapshot-kind="app-jit" --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" --no-enable-mirrors "$SCRIPT_PATH" > /dev/null

Cannot run the app to Pi 4B

I can list devices

snapp_cli devices list

✓  Searching for custom devices completed!

List of custom devices in "C:\Users\enzii\AppData\Roaming\.flutter_custom_devices.json":
  id: pi-5, label: Raspberry Pi 5, enabled: true
  id: pi-4b, label: Raspberry Pi 4 Model B, enabled: true

However, it cannot run an application to Pi 4 on debug mode

 flutter run -d pi-4b
Launching lib\main.dart on Raspberry Pi 4 Model B in debug mode...
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
cp: target '/tmp/flutter_application_1/build/flutter_assets' is not a directory
cp: target '/tmp/flutter_application_1/build/linux/arm64/debug/bundle/data/flutter_assets' is not a directory
cp: cannot create regular file '/tmp/flutter_application_1/build/linux/arm64/debug/bundle/data': No such file or directory
bash: line 1: /tmp/flutter_application_1/build/linux/arm64/debug/bundle/flutter_application_1: No such file or directory

In debian bookwork kiosk autostart doesn't work

Love this project - great work thank you!

It looks like the way autostart works has changed in bookworm - See this thread: https://forums.raspberrypi.com/viewtopic.php?t=357858

$HOME/.config/lxsession/LXDE-pi/autostart now seems to be ignored.

It looks like it's now using ~/.config/wayfire.ini to look for autostart items adding:

[autostart]
kiosk=bash /home/douglash/kiosk/kiosk.sh && sleep 5 && xdotool key alt+F11

to the bottom of that file launches the app.

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.