パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.12.0

flutterpi_tool

Flutter-Pi アプリの開発と配布を簡単にするためのツール。

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
3210
いいね数
44
Pub ポイント
40

パッケージをインストール

flutter pub add flutterpi_tool

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

flutterpi_tool は、flutter-pi を使用して組み込みおよびデスクトッププラットフォーム向けのFlutterアプリケーションの作成、テスト、展開を簡素化することを目的とした開発および配布ユーティリティです。Linux、Windows、macOS、Android、iOSなど、複数のオペレーティングシステムでセットアップ、ビルド、パッケージングプロセスをスムーズにします。ヘッドレスまたはリソース制限のある環境において特に有効なクロスプラットフォームアプリ配信に関連する繰り返し作業を自動化することで、ワークフローの効率を高めます。シンプルな pub add コマンドにより、既存のFlutterプロジェクトとのシームレスな統合が可能です。

用途

  • クロスプラットフォームのFlutterアプリデプロイ
  • 簡略化された flutter-pi プロジェクトのセットアップ
  • 組み込みデバイス用の自動ビルド
  • ヘッドレスアプリのスムーズな配布
  • Linux およびその他のターゲットで Flutter アプリをテストする

主な機能

  • pub を通じたワンコマンドインストール
  • マルチプラットフォーム対応(Linux、Windows、macOS、Android、iOS)
  • 自動化ビルドおよびパッケージングワークフロー
  • flutter-piエコシステムとの統合
  • ヘッドレスおよび埋め込み展開のサポート

適している対象

  • 組み込みシステムをターゲットとする開発者
  • Linux上でFlutterアプリをデプロイするチーム
  • flutter-pi を使用するクロスプラットフォームアプリ作成者
  • IoTおよびキオスクアプリケーション開発者
  • 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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。