I'm writing a simple Safari Extension, and I'm trying to figure out how to get the update mechanism working. Apple's documentation here is delightfully vague:
https://developer.apple.com/library/archive/documentation/Tools/Conceptual/SafariExtensionGuide/UpdatingExtensions/UpdatingExtensions.html
And here's my manifest, based on that documentation:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Extension Updates</key>
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>net.rickyromero.safari.shutup</string>
<key>Team Identifier</key>
<string>TMM5P68287</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>URL</key>
<string>http://rickyromero.net/misc/SafariExtensions/ShutUp.safariextz</string>
</dict>
</array>
</dict>
</plist>
I don't know where to get "YourCertifcateID," for example. And when I increment the values for CFBundleVersion and CFBundleShortVersionString, it doesn't trigger an update. I know Safari is hitting my manifest though, because I'm watching HTTP traffic.
In the Safari app on your Mac, use Extensions preferences to change how you use extensions installed on your Mac. To change these preferences, choose Safari > Preferences, then click Extensions. Safari extensions are software programs you can install to customize the way your browser works.
Manage your extensions In the Safari app on your Mac, choose Safari > Preferences, then click Extensions. Do any of the following: Turn an extension on or off: Select or deselect the extension's checkbox. Note: You get a warning if you turn on an extension that slows down browsing.
To begin, launch Safari and then select Safari > Safari Extensions… This opens a web page — the Safari Extensions Gallery (see image below). Here you'll find Safari extensions that have been created and submitted to Apple by developers, then tested and approved before making it to the Gallery.
Team Identifier
should be Developer Identifier
The Developer Identifier is taken from the string at the top of the Extension Builder window, Safari Developer: (DEVELOPER_IDENTIFIER) EMAIL
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With