docs.rs failed to build tauri-plugin-sparkle-updater-0.2.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
tauri-plugin-sparkle-updater
A Tauri plugin that integrates the Sparkle update framework for macOS applications.
Features
- Native macOS update UI via Sparkle framework
- EdDSA (Ed25519) signature verification
- Automatic and background update checks
- Full event system for custom UI integration
- Channel-based updates, custom HTTP headers, phased rollout
- TypeScript/JavaScript API with full type definitions
Requirements
- macOS 11.0+
- Tauri 2.x
- Sparkle framework 2.8.1
Quick Start
1. Install dependencies
# src-tauri/Cargo.toml
[]
= "0.2"
2. Download Sparkle & generate keys
# Download Sparkle framework
|
# Generate signing keys (saved to Keychain)
3. Configure Info.plist
Create src-tauri/Info.plist:
SUFeedURL
https://example.com/appcast.xml
SUPublicEDKey
YOUR_BASE64_PUBLIC_KEY
4. Bundle configuration
5. Register plugin
Basic Usage
Rust
use SparkleUpdaterExt;
Note:
sparkle_updater()returnsNoneduringtauri dev(requires.appbundle).
TypeScript
import {
checkForUpdates,
checkForUpdatesInBackground,
onDidFindValidUpdate,
onDidAbortWithError,
} from 'tauri-plugin-sparkle-updater-api';
// Check with native UI
await checkForUpdates();
// Background check
await checkForUpdatesInBackground();
// Listen for events
await onDidFindValidUpdate((info) => {
console.log(`Update ${info.version} available!`);
});
Documentation
- API Reference (docs.rs) - Rust API documentation
- Publishing - Signing and CI/CD workflow
- Sparkle Documentation - Appcast format, configuration keys, sandboxing
Cross-Platform
For Windows/Linux, use the official tauri-plugin-updater:
builder = builder.plugin;
builder = builder.plugin;
License
MIT