auto_updater
1.0.0, released 2 years ago by leanflutter.dev
Allows Flutter desktop apps to automatically update themselves based on Sparkle and WinSparkle.
What it does
Provides a plugin for Flutter desktop apps on macOS and Windows to check for updates, set feed URLs, manage update intervals, and install updates using Sparkle and WinSparkle backends.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter desktop application for macOS and/or Windows and need auto-update functionality.
- You want to use Sparkle or WinSparkle to host and distribute application updates.
Skip it when
- You are building for mobile or web platforms where desktop auto-update frameworks like Sparkle do not apply.
- You distribute your desktop app exclusively through app stores (like the Mac App Store) that handle updates natively.
Strengths
- Supports both macOS and Windows via native Sparkle and WinSparkle integrations.
- Provides simple command-line tools for generating keys and signing updates.
Weaknesses
- Linux is not supported.
- Requires manual setup of native dependencies like OpenSSL on Windows and specific Info.plist keys on macOS.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 5
Requires installing OpenSSL on Windows via Chocolatey, configuring Info.plist keys for macOS, setting up appcast.xml feeds, and handling platform-specific packaging configurations.
import 'package:auto_updater/auto_updater.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
String feedURL = 'http://localhost:5002/appcast.xml';
await autoUpdater.setFeedURL(feedURL);
await autoUpdater.checkForUpdates();
await autoUpdater.setScheduledCheckInterval(3600);
runApp(MyApp());
}Alternatives
Packages that do the same job and could replace auto_updater.
- velopack_flutter
Cross-platform installation and auto-update framework for desktop apps
74Compare - launch_at_startup
Allows Flutter desktop apps to automatically launch on startup or login.
70Compare - xdg_desktop_portal
A native Dart implementation of portals for Linux desktop applications.
75Compare - screen_capturer
Allows Flutter desktop apps to take screenshots.
50Compare
Works with
Packages commonly used together with auto_updater: ones it builds on, ones built on it, and its own family.