desktop_updater
3.2.12, released 4 days ago by radlof.com
Sparkle-style auto-updater for Flutter desktop apps
What it does
Provides a cross‑platform updater that downloads signed release artifacts, verifies them, and installs updates. It includes a CLI for publishing feeds and a built‑in UI for showing update progress.
AI-written summary of version 3.2.11, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need automatic, signed updates for macOS, Windows, or Linux Flutter apps
- You want a single package that handles download, verification, and installation
- You prefer a command‑line tool to publish and manage update feeds
Skip it when
- You need a lightweight, single‑file updater without key management
- You are targeting only one platform and can use platform‑specific tools
Strengths
- Cross‑platform support (macOS, Windows, Linux)
- Verified releases with cryptographic signatures
- CLI for publishing and key management
- Built‑in UI for update progress
Weaknesses
- Requires manual key generation and secure storage
- Setup involves multiple native steps and configuration files
- Documentation is extensive but can be complex for beginners
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 10
Run `dart run desktop_updater:release keygen` to generate keys, add a `desktop_updater.yaml` config, implement a recovery store, and configure platform‑specific build steps (e.g., macOS install helper).
```dart
import "package:desktop_updater/desktop_updater.dart";
const trustedReleasePublicKeys = <String, String>{
"release-0123456789abcdef01234567":
"base64-raw-ed25519-public-key",
};
Future<DesktopUpdaterController> createDesktopUpdaterController() async {
return DesktopUpdaterController(
appArchiveUrl: Uri.parse("https://updates.example.com/app-archive.json"),
expectedPackageId: "com.example.app",
trustedReleasePublicKeys: trustedReleasePublicKeys,
recoveryStore: JsonFileUpdateRecoveryStore(File("path/to/pending-install.json")),
);
}
```Alternatives
Packages that do the same job and could replace desktop_updater.
- cli_dialog
Create Inquirer.js-style CLI prompts and tests in Dart.
30Compare
Works with
Packages commonly used together with desktop_updater: ones it builds on, ones built on it, and its own family.
- archivedesktop_updater depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- yamldesktop_updater depends on itA Dart library for parsing YAML documents into Dart data structures.
- cryptodesktop_updater depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- pub_semverdesktop_updater depends on itVersions and version constraints implementing pub's versioning policy.
- pubspec_parsedesktop_updater depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.
- argsdesktop_updater depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- plugin_platform_interfacedesktop_updater depends on itReusable base class for platform interfaces of Flutter federated plugins.
- cryptography_plusdesktop_updater depends on itCryptographic algorithms for encryption, signatures, key agreement, and hashing across platforms.