A guide for developers on how to ensure your app's updates are detectable by Updatest.
Updatest scans your app's bundle to find update sources. It checks for:
Your cask formula defines how Homebrew installs your app. Here's a basic example:
cask "your-app" do
version "1.2.3"
sha256 "abc123..."
url "https://example.com/releases/YourApp-#{version}.dmg"
name "Your App"
desc "A description of your app"
homepage "https://yourapp.com"
app "Your App.app"
zap trash: [
"~/Library/Application Support/Your App",
"~/Library/Preferences/com.yourcompany.yourapp.plist",
]
endSubmit your cask to the homebrew-cask repository. Fork the repo, add your cask file to the Casks directory, and open a pull request. For detailed instructions, see the Cask Cookbook.
When you release a new version, update your cask formula with the new version number, SHA256 hash, and download URL. You can automate this with Homebrew's update process. Many developers use CI/CD to automatically submit cask updates when they publish new releases.
Some developers try to dynamically generate appcast responses from their server. This breaks update detection for tools like Updatest. Always host a static appcast.xml file at your SUFeedURL that returns valid XML without requiring special parameters or app context.
Updatest may be able to access authenticated appcast URLs, but results can vary. For the most reliable update detection, host your appcast at a publicly accessible URL.
Install Sparkle via Swift Package Manager, CocoaPods, or manual integration:
// Swift Package Manager
dependencies: [
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.0.0")
]Add the required Sparkle keys to your Info.plist:
<key>SUFeedURL</key>
<string>https://yourapp.com/appcast.xml</string>
<key>SUPublicEDKey</key>
<string>your-ed25519-public-key</string>Generate an appcast.xml file that lists your app versions. Use Sparkle's generate_appcast tool:
./bin/generate_appcast /path/to/your/releasesHost your appcast.xml at a stable, publicly accessible URL. This is the URL you put in SUFeedURL. Example appcast structure:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
<channel>
<title>Your App Changelog</title>
<item>
<title>Version 1.2.3</title>
<sparkle:version>1.2.3</sparkle:version>
<sparkle:shortVersionString>1.2.3</sparkle:shortVersionString>
<pubDate>Mon, 20 Jan 2025 12:00:00 +0000</pubDate>
<enclosure url="https://yourapp.com/releases/YourApp-1.2.3.zip"
sparkle:edSignature="..."
length="12345678"
type="application/octet-stream"/>
</item>
</channel>
</rss>Follow Apple's standard submission process through App Store Connect. Once your app is approved and published, Updatest will detect it.
When you release updates, submit them through App Store Connect as usual. After Apple approves the update, Updatest will show it to users who have your app installed.
Updatest filters out generic or template repositories to avoid false positives. If you forked from an Electron starter template, make sure to update the publish configuration to use your own repository with a name that relates to your app.
In your electron-builder config (package.json or electron-builder.yml), set the publish target:
{
"build": {
"appId": "com.yourcompany.yourapp",
"publish": {
"provider": "github",
"owner": "yourcompany",
"repo": "yourapp"
}
}
}For self-hosted update servers, use the generic provider:
{
"build": {
"publish": {
"provider": "generic",
"url": "https://updates.yourapp.com"
}
}
}For generic servers, host a latest-mac.yml file at your update URL with version info:
version: 1.2.3
files:
- url: YourApp-1.2.3-arm64.dmg
sha512: abc123...
- url: YourApp-1.2.3-x64.dmg
sha512: def456...
path: YourApp-1.2.3.dmg
sha512: abc123...
releaseDate: '2025-01-20T12:00:00.000Z'Updatest filters out generic or template repositories to avoid false positives. Make sure your GitHub repository name or owner relates to your app's name.
Add your GitHub repository URL to your app's Info.plist:
<key>GHRepositoryURL</key>
<string>https://github.com/yourname/yourapp</string>Create releases on GitHub with semantic version tags:
# Tag and push your release
git tag v1.2.3
git push origin v1.2.3
# Then create the release on GitHub with this tagAttach your macOS app (.dmg or .zip) as a release asset. Updatest will display the download URL to users so they can grab the update.
If your app uses a different update mechanism or you're having trouble getting Updatest to detect your updates, let us know.
Contact Us