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

插件详情v1.0.0

auto_updater

此插件允许Flutter桌面应用程序自动更新自身(基于Sparkle和WinSparkle)。

macOSWindows
近 30 天下载
8万
喜欢数
218
Pub 分数
130

安装插件

flutter pub add auto_updater

插件介绍

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

auto_updater 包使 Flutter 桌面应用程序能够在 macOS 和 Windows 上自动更新自身,利用 Sparkle(macOS)和 WinSparkle(Windows)。它通过检查新版本、下载更新并无缝应用更新来简化更新交付过程。开发者可以以最少的配置将其集成到应用程序中,确保用户无需手动干预即可始终使用最新版本。该包非常适合需要可靠自动化更新机制的桌面应用程序。

适合场景

  • 桌面 Flutter 应用中的自动应用更新
  • 无缝版本升级,为最终用户提供支持
  • 与 Sparkle 和 WinSparkle 框架集成
  • 减少手动更新开销
  • 保持桌面应用程序的最新状态

主要特点

  • 支持 macOS 和 Windows 平台
  • 在底层使用 Sparkle 和 WinSparkle
  • 所需设置最少
  • 后台更新检查
  • 自动下载和安装

适合对象

  • 桌面 Flutter 开发人员
  • 需要自动更新的应用程序
  • 希望轻松部署的出版商
  • 管理多个桌面版本的团队
  • 针对 macOS 和 Windows 的项目

使用建议

  • 需要正确配置更新源
  • 仅限 macOS 和 Windows
  • 需要有效的更新元数据(例如,XML 或 JSON)
  • 不适用于移动平台
  • 依赖外部原生库

原始 README

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

🚀 Ship Your App Faster: Try Fastforge - The simplest way to build, package and distribute your Flutter apps.

auto_updater

pub version

This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle).


English | 简体中文


Platform Support

Linux macOS Windows
➖ ✔️ ✔️

Documentation

Who's using it?

  • Biyi - A convenient translation and dictionary app.

API

AutoUpdater
Methods
setFeedURL

Sets the url and initialize the auto updater.

checkForUpdates

Asks the server whether there is an update. You must call setFeedURL before using this API.

setScheduledCheckInterval

Sets the auto update check interval, default 86400, minimum 3600, 0 to disable update

Related Links

  • https://sparkle-project.org/
  • https://winsparkle.org/

License

MIT

所属分类

依赖

依赖清单 5 项

  • auto_updater_macos^1.0.0
  • auto_updater_platform_interface^1.0.0
  • auto_updater_windows^1.0.0
  • json_annotation^4.8.0
  • path^1.8.3

源码仓库

使用此插件的项目