패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.12.0

flutterpi_tool

flutter-pi 앱 개발 및 배포를 더 쉽게 만드는 도구입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
3.2천
좋아요
44
Pub 점수
40

패키지 설치

flutter pub add flutterpi_tool

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

flutterpi_tool은 flutter-pi를 사용하여 임베디드 및 데스크톱 플랫폼용 Flutter 애플리케이션의 개발, 테스트 및 배포를 간소화하도록 설계된 개발 및 배포 유틸리티입니다. Linux, Windows, macOS, Android, iOS 등 여러 운영 체제에서 설정, 빌드 및 패키징 프로세스를 간소화합니다. 특히 헤드리스 또는 자원이 제한된 환경에서 크로스플랫폼 앱 배포와 관련된 반복 작업을 자동화함으로써 워크플로우 효율성을 향상시킵니다. 간단한 pub add 명령어를 통해 기존 Flutter 프로젝트와 원활하게 통합할 수 있습니다.

사용 사례

  • 크로스 플랫폼 플러터 앱 배포
  • 간소화된 flutter-pi 프로젝트 설정
  • 임베디드 장치용 자동 빌드
  • 헤드리스 앱의 간소화된 배포
  • Linux 및 기타 대상에서 Flutter 앱 테스트하기

주요 기능

  • pub를 통한 단일 명령 설치
  • 다중 플랫폼 지원 (Linux, Windows, macOS, Android, iOS)
  • 자동화된 빌드 및 패키징 워크플로우
  • flutter-pi 생태계와의 통합
  • 헤드리스 및 임베디드 배포 지원

적합한 대상

  • 임베디드 시스템을 대상으로 하는 개발자
  • Linux에서 Flutter 앱을 배포하는 팀
  • flutter-pi를 사용하는 크로스플랫폼 앱 제작자
  • 사물인터넷 및 키오스크 애플리케이션 개발자
  • Flutter 기반 데스크톱 앱을 위한 DevOps 워크플로

고려 사항

  • flutter-pi 환경 설정이 필요합니다
  • flutter-pi 프로젝트와의 사용에 한정
  • 복잡한 빌드를 위해 추가 구성이 필요할 수 있습니다
  • 모바일 앱 스토어 게시를 위한 것이 아님
  • GitHub에 호스팅된 소스 코드에 의존

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

flutterpi_tool

A tool to make developing & distributing flutter apps for https://github.com/ardera/flutter-pi easier.

📰 News

  • Building & Running apps on meta-flutter yocto distros works now, via the --fs-layout=meta-flutter option to flutterpi_tool devices add, flutterpi_tool build.
  • RISC-V 64-bit is now supported as a target & host platform.
  • The flutter-pi binary to bundle can now be explicitly specified using --flutterpi-binary=...

Setup

Setting up is as simple as:

flutter pub global activate flutterpi_tool

flutterpi_tool is pretty deeply integrated with the official flutter tool, so it's very well possible you encounter errors during this step when using incompatible versions.

If that happens, and flutter pub global activate exits with an error, make sure you're on the latest stable flutter SDK. If you're on an older flutter SDK, you might want to add an explicit dependency constraint to use an older version of flutterpi_tool. E.g. for flutter 3.19 you would use flutterpi_tool 0.3.x:

flutter pub global activate flutterpi_tool ^0.3.0

If you are already using the latest stable flutter SDK, and the command still doesn't work, please open an issue!

Usage

$ flutterpi_tool --help
A tool to make development & distribution of flutter-pi apps easier.

Usage: flutterpi_tool <command> [arguments]

Global options:
-h, --help         Print this usage information.
-d, --device-id    Target device id or name (prefixes allowed).

Other options
    --verbose      Enable verbose logging.

Available commands:

Flutter-Pi Tool
  precache   Populate the flutterpi_tool's cache of binary artifacts.

Project
  build      Builds a flutter-pi asset bundle.
  run        Run your Flutter app on an attached device.

Tools & Devices
  devices    List & manage flutterpi_tool devices.

Run "flutterpi_tool help <command>" for more information about a command.

Examples

1. Adding a device
$ flutterpi_tool devices add pi@pi5
Device "pi5" has been added successfully.
2. Adding a device with an explicit display size of 285x190mm, and a custom device name
$ flutterpi_tool devices add pi@pi5 --display-size=285x190 --id=my-pi
Device "my-pi" has been added successfully.
3. Adding a device that uses meta-flutter
$ flutterpi_tool devices add root@my-yocto-device --fs-layout=meta-flutter
4. Listing devices
$ flutterpi_tool devices
Found 1 wirelessly connected device:
  pi5 (mobile) • pi5 • linux-arm64 • Linux

If you expected another device to be detected, try increasing the time to wait
for connected devices by using the "flutterpi_tool devices list" command with
the "--device-timeout" flag.
...
5. Creating and running an app on a remote device
$ flutter create hello_world && cd hello_world

$ flutterpi_tool run -d pi5
Launching lib/main.dart on pi5 in debug mode...
Building Flutter-Pi bundle...
Installing app on device...
...
6. Running the same app in profile mode
$ flutterpi_tool run -d pi5 --profile

카테고리

의존성

의존성 목록 11 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.