Peter Speck
c614b679e1
Install.app launches in semi-background from PrefsPanel
2008-09-19 19:48:10 +02:00
Andy Matuschak
9eb4368d6f
Updated sample appcast to be appropriate for DSA signatures being required.
sparkle-1.5b6
2008-09-13 22:54:16 -05:00
Andy Matuschak
783fd4b475
Merging in new Dutch localization changes.
2008-09-13 22:53:53 -05:00
Andy Matuschak
00efab8ad2
generate_key.rb => generate_keys.rb
2008-09-11 22:08:32 -05:00
Andy Matuschak
d73b3745bf
Fixes 268756
...
When determining LSUIElement status, Sparkle now asks the process manager instead of checking Info.plist; this'll support apps that change their LSUIElement status at runtime.
2008-09-11 11:33:18 -05:00
Andy Matuschak
ccd44c0cb2
Fixes 268723
...
Now forcing a DSA signature check if the client provides a public key with the app.
2008-09-10 17:48:57 -05:00
Andy Matuschak
9a0acca849
More security tidbits!
...
This patch prevents malicious downgrades, which are still possible with DSA validation: suppose there's some (signed) version with a security hole. A malicious attacker could serve an appcast with that version's URL and DSA signature, but a higher version number, forcing the user to "upgrade" to the version with the security hole.
While I was at it, I fixed a bug that should have completely stopped .pkg installation from working since 1.5b1. Why didn't I hear anything about that? Does anyone actually use .pkgs? It still needs testing to be sure it works.
2008-09-10 11:47:58 -05:00
Andy Matuschak
95f9658a7e
Fixes 244692
...
Fixing a GC leak that would occur on non-64-bit machines.
2008-09-10 10:47:22 -05:00
Andy Matuschak
0fa24ce313
Restored the old default font size for release notes, now that we're doing webview preferences a different way.
2008-09-10 10:45:58 -05:00
Andy Matuschak
28ad466aa8
Fixes 268471
...
-- Removed obsolete configuration settings regarding 10.3 support.
-- Stopped a configuration file from getting added to the Resources folder.
2008-09-10 10:39:31 -05:00
Andy Matuschak
7e9fc0f20b
Changed the security policy once more:
...
The user is defined as "safe" and exempt from DSA signatures if he downloaded both the appcast and the update over SSL.
2008-09-10 10:37:47 -05:00
Andy Matuschak
7f5689835b
Fixed a small security hole: release notes specified with a file:// URL would be able to read files on your file system through Javascript (basically a cross-site scripting attack). file:// URLs are therefore no longer supported for release notes.
2008-09-09 23:39:00 -05:00
Andy Matuschak
478e0a53d0
Fixed a potential security vulnerability in which the download is transmitted over SSL but is from a malicious server. Now the download has to be transmitted over SSL *and* the download's host has to be the same as the appcast's.
2008-09-09 23:34:20 -05:00
Andy Matuschak
588cad8d91
Killed off SUExpectsDSASignatureKey.
2008-09-06 19:07:54 -05:00
Andy Matuschak
1d3ab8d6bb
Alright, guys. No more Mr. Nice Sparklepants. Sparkle now requires either DSA-signed updates or SSL transport. If you want to put your users at risk, you're going to have to comment out some code and recompile.
...
I included some scripts to help you along, though. IANASG (I Am Not a Security Guy), though, so if you know your shit, feel free to do it on your own as before.
2008-09-06 18:59:50 -05:00
Andy Matuschak
e086aa1660
Munged localizations so that unicode characters like em-dashes and ellipses are now in the values of the localization strings, not the keys; putting them in the latter made Sparkle unbuildable on Tiger. Thanks to Stuart Morgan for the patch.
2008-09-06 12:34:03 -05:00
Stuart Morgan
188a15a948
Fix a key in sv.lproj
2008-09-04 20:22:45 -07:00
Andy Matuschak
874660f52e
Added a warning log message for bundles which don't have a CFBundleIdentifier key.
2008-09-04 10:51:46 -05:00
Stuart Morgan
29bd46d68d
Don't use unicode in NSString literals
2008-09-04 07:57:17 -07:00
Andy Matuschak
cb80e0ef51
No longer polluting the standard WebView preferences. Thanks to Christiaan Hofman for the patch.
2008-09-04 09:53:53 -05:00
Andy Matuschak
ccef53a3d3
Fixes 259704
...
Fixed a memory leak in the update permission prompt.
2008-09-04 09:44:35 -05:00
Andy Matuschak
d201803259
More fixes for 258060
...
Fixes a bug which could cause a crash when the update item is chosen by the delegate from the appcast. Thanks, Christiaan Hofman.
2008-09-03 22:34:25 -05:00
Andy Matuschak
74b206dc77
Fixes 259455
...
Fixes release notes stored raw in the <description> key. Thanks to Peter Speck for the patch.
2008-08-19 21:57:23 -07:00
Andy Matuschak
42cda2d2e0
Fixes 259062
...
Added a SUUpdater key for lastUpdateCheckDate. Thanks to Peter Speck for the patch!
2008-08-19 21:44:39 -07:00
Andy Matuschak
c386b704b5
Partial fix for 245277: basic descriptions for some Sparkle classes. Thanks to Christiaan Hofman for the patch.
2008-08-19 21:24:26 -07:00
Andy Matuschak
84be00b29f
Fixes 258991
...
The selector for the updaterWillRelaunchApplication delegate call had a typo in it, so it wasn't getting called. Oof.
2008-08-19 21:13:15 -07:00
Andy Matuschak
d064b589ae
Fixed the total failure of the SUProbingUpdateDriver to notify its delegate when an update is found. Sorry about that, guys! Wow.
2008-08-19 21:09:31 -07:00
Peter Speck
90edd12e43
No update-release notes displayed for when using <description> instead of <sparkle:releaseNotesLink>
2008-08-19 17:50:28 +02:00
Peter Speck
c71bf3ccbe
Provide getter for SULastCheckTimeKey
2008-08-18 15:11:05 +02:00
Andy Matuschak
724b4de07e
Renamed SUAppcastItem's "description" key to "itemDescription" so as not to conflict with the standard Cocoa description method.
2008-08-17 15:23:50 -07:00
Andy Matuschak
444b0a928d
Fixed a stupid mistake that prevented my fix for parameterized URLs from actually functioning.
2008-08-17 14:15:57 -07:00
Andy Matuschak
ec8fcbc02f
If an update's display version is the same as the host's display version, the internal version number will be presented in parentheticals.
2008-08-17 13:51:55 -07:00
Andy Matuschak
68e2cd67d1
Fixes 258492
...
Sparkle can now handle appending parameters to URLs which already have parameters (like http://foo.org/baz?bat=4 )
2008-08-17 13:42:47 -07:00
Andy Matuschak
c21e1aba35
Fixes 258529 and 257967
...
Added backwards compatibility support for Sparkle 1.1's behavior of disabling automatic updates when the check interval was 0.
Sparkle will now properly reset the update cycle when setAutomaticallyChecksForUpdates or setUpdateCheckInterval is called for non-.app bundles.
2008-08-17 13:25:49 -07:00
Andy Matuschak
ec7f38d157
Fixes 258547
...
SUUpdater now implements two new keys: "automaticallyDownloadsUpdates" and "sendsSystemProfile".
Here's the current state of the setting keys, as documented by Christiaan Hofman:
* UserDefaults through SUUpdater accessors with default value in Info.plist:
SUFeedURL
SUScheduledCheckInterval
SUEnableAutomaticChecks
SUSendProfileInfo
SUAutomaticallyUpdate
* Info.plist only (app settings):
SUShowReleaseNotes
SUPublicDSAKey
SUPublicDSAKeyFile
SUExpectsDSASignature
SUEnableSystemProfiling
* UserDefaults only (private persistent state):
SUHasLaunchedBefore
SUSkippedVersion
SULastCheckTime
SULastProfileSubmitDate
This revision also corrects a compilation error from r285.
2008-08-17 13:06:33 -07:00
Andy Matuschak
5b38483981
Fixes 245723
...
Refactoring some code through new simplified "objectForKey" and "boolForKey" methods on SUHost which abstract the behavior of a user defaults preference defaulting to an info.plist setting. Thanks to Christiaan Hofman for the patch.
2008-08-17 12:35:41 -07:00
Andy Matuschak
46312a2d15
Fixes 258060
...
Fixed a couple memory leaks. Thanks to Christiaan Hofman for the patch.
2008-08-17 12:15:01 -07:00
Andy Matuschak
8a240f7c46
Fixes 258708
...
Returning the update alert's web view's default text size to 11. I swear I've done this like twice already!
2008-08-17 11:24:36 -07:00
Maarten Van Coile
17ca061cda
Update Dutch to 1.5b5
2008-08-15 19:30:29 +02:00
Andy Matuschak
4da902b46c
Fixes 251968
...
Sparkle now requires custom feed parameters to include a "displayKey" and "displayVersion" key. These will be displayed to the user in the initial permission dialog so that he knows what he's getting.
sparkle-1.5b5
2008-08-10 23:49:30 -07:00
Andy Matuschak
7b39268171
No longer fragile-ly using class method singletons to get to the updater's delegate from within the update driver. Update drivers now have an initWithUpdater: method which I use instead.
2008-08-10 23:05:18 -07:00
Andy Matuschak
0343569cdc
Fixes 256106
...
Sparkle will no longer break on nil XML nodes; that would occur when a node is commented out. Thanks to Christiaan Hofman for the patch.
2008-08-10 21:31:09 -07:00
Andy Matuschak
32a804e2ea
Sparkle now uses Cocoa for user defaults for .apps and CF for user defaults for non-.apps. I think this is better than having .apps use both code paths.
2008-08-10 21:06:18 -07:00
Andy Matuschak
7ce078eb16
Fixes 356328
...
Sparkle will now clean up the hsot app's name and version before sending it as the user agent string; some non-ASCII characters were causing problems before.
Additionally, Sparkle now uses the bzr revision encoded in the framework's CFBundleVersion as the version it sends for itself in the user agent string; before this value was hardcoded, which was dumb.
2008-08-10 18:23:32 -07:00
Andy Matuschak
f9dda21088
Fixes 255399
...
Giving clients a chance to make multiple preference changes before they take effect.
2008-08-10 17:32:40 -07:00
Andy Matuschak
00c5ae4a42
Changing localized release notes behavior slightly: release note keys which are not tagged with an xml:lang attribute are no longer assumed to be English. So if the user has a foreign language anywhere in their preferred languages list, even if English is higher, release notes keyed to "da" will be picked before release notes not keyed to any language.
2008-08-04 20:58:54 -07:00
Andy Matuschak
d73d8333a1
Changing the behavior of the level of Sparkle's update window for the case of an LSUIElement. In that case, I think it's best for Sparkle to use NSFloatingWindowLevel, so that it's clear why the menu items are disabled (due to modality) when they click the menu icon again, thus focusing the update alert. We'll see how well this works.
2008-08-03 01:15:56 -07:00
Andy Matuschak
9c720fd6b7
Updated Russian localization courtesy Alexander Bykov. Thanks!
2008-08-03 00:40:28 -07:00
Andy Matuschak
7228235ce3
Fixes 253929
...
Fixed a workaround for using registered user defaults on Tiger that I managed to break. Go me!
2008-08-03 00:30:37 -07:00
Andy Matuschak
5684a1477e
Fixes 253967
...
SUDSAVerifier now inherits from NSObject; missed that very important step! Oops!
2008-08-01 22:25:00 -07:00