搜索插件、代码仓与 APP 分类

插件详情v0.2.0

squirrel

创建可安装的桌面应用程序

近 30 天下载
53
喜欢数
40
Pub 分数
35

安装插件

flutter pub add squirrel

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Squirrel 是一个 Flutter 包,可帮助开发者为 Windows、Linux 和 macOS 创建可安装的桌面应用程序。它简化了将 Flutter 应用打包并发布为原生桌面安装程序的过程,处理更新、文件关联和系统集成。通过利用 Squirrel 强大的更新机制,应用程序可以自动检查并应用更新,确保用户始终使用最新版本。该包与 Flutter 工作流无缝集成,并支持跨平台部署,配置简单。

适合场景

  • 构建可分发的桌面应用程序
  • 自动化应用更新
  • 为多个操作系统创建安装程序包
  • 集成原生桌面功能
  • 将Flutter应用发布给最终用户
  • 启用静默后台更新

主要特点

  • 跨平台桌面支持
  • 自动更新管理
  • Windows、Linux 和 macOS 的安装程序生成
  • 与 Flutter 的无缝集成
  • 支持增量更新
  • 基于 CLI 的简单设置

适合对象

  • 桌面应用程序开发者
  • 跨平台桌面应用程序的发布者
  • 需要自动更新的团队
  • 面向 Windows、Linux 和 macOS 的开发者
  • 需要原生安装程序行为的项目

使用建议

  • 需要进行平台特定的设置步骤
  • 仅限桌面平台
  • 复杂的流程可能需要额外的配置
  • 不适用于移动或Web部署
  • 依赖外部 Squirrel 工具以实现完整功能

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Squirrel.Windows for Flutter

This package creates desktop installers for Windows 7+ as well as implements auto-update, via Squirrel.Windows, an installer technology used originally as part of the Atom text editor and now deployed on millions of machines via projects such as Slack, Discord, GitHub Desktop, as well as hundreds of other projects.

Getting Started (alpha)

Run the following command, it will tell you what to do next (put an extra block in your pubspec.yaml).

flutter pub run squirrel:installer_windows

Now take that folder that it generates and upload that to Cloudfront / Fastly / any static CDN. Bingo bongo, you're done!

How do I update? (alpha)

This is WIP, but the extremely lazy answer is, run this command on startup via Process.run:

$WHATEVER_FOLDER_MY_EXECUTABLE_IS_IN/../Update.exe --update https://wherever-i-put-my-update-folder

` Before this package reaches 1.0, it will have a proper API to do this!

Where can I read more, because this README is extremely lacking in content! (I know)

Read the Squirrel documentation - note that some of the names in this package have been clarified / simplified vs. what they are called in Squirrel.Windows, read installer_windows.dart in this package to see how things map.

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。