Commit Graph
315 Commits
Author SHA1 Message Date
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
Andy Matuschak 347dd73269 Fixes 253739
When checking to see if an app is an LSUIElement, Sparkle now checks the info dictionary of the main bundle instead of the info dictionary of the host bundle. That didn't work at all for plugins.
2008-08-01 00:12:44 -07:00
Andy Matuschak a14850458d Fixes 252986
Adds support for xml:lang to pick localized nodes in appcasts (for release notes, etc)
2008-07-31 23:59:12 -07:00
Andy Matuschak e249e3cfb6 Fixes 253187
Added a delegate method called pathToRelaunchForUpdater: which can be used for plugins to provide the path which should be used when relaunching the client after installing an update.
2008-07-30 23:37:56 -07:00
Andy Matuschak d1c0978ee5 As discussed in https://bugs.launchpad.net/sparkle/+bug/243884/comments/11, this patch makes it so that system profiling is only submitted to the server once per week. This will normalize clients' users: those which check daily won't count much more than those which check weekly. Thanks to David Smith for the patch. 2008-07-30 23:14:39 -07:00
David Smith e3226d3511 A cleaned up and tested version of the one-submit-per-week code 2008-07-30 01:30:11 -07:00
Andy Matuschak ae7c416f16 Actually added the Russian lprojes
Changed the fr_ca localization folder to fr_CA.
2008-07-30 00:40:36 -07:00
Andy Matuschak 1456fa0f75 Updated Russian localization (courtesy Alexander Bykov and Anton Sotkov), though it's still slightly out of date from the most recent string changes
Updated French localization (courtesy Ronald Leroux and Yann Ricquebourg)
The fr_ca localization is now linked to the French localization.
2008-07-30 00:36:45 -07:00
Andy Matuschak d6acd07d5c Fixes 252733
The status window's progress bar now animates even when indeterminate.
2008-07-29 23:58:57 -07:00
Andy Matuschak d8149e9eb0 Fixes 253145
Fixed a stupid typo in the +[SUUpdater updaterForBundle:] method.
2008-07-29 22:54:39 -07:00
Andy Matuschak d6557e21a0 Turning on SEPARATE_STRIP in hopes of fixing things for older versions of Xcode. 2008-07-29 08:31:37 -07:00
Andy Matuschak 3bccef8d22 Fixes 251963
SUAppcastItem now copies the properties dictionary it's given for safety.
2008-07-28 21:55:07 -07:00
Andy Matuschak a27e8316fe Made the aggressive stripping only apply to the framework, since some people were having trouble with relaunch with that configuration. 2008-07-28 21:14:13 -07:00
Andy Matuschak b419948c8d Forgot to tell the Sparkle-GC configuration about Sparkle.pch. 2008-07-25 08:53:57 -07:00
Andy Matuschak 211555639d Removed potentially dangerous KVO magic. 2008-07-25 08:46:46 -07:00
Andy Matuschak 46125abdeb Updated French localization courtesy Ronald Leroux
Updated German localization courtesy Sven-S. Porst
2008-07-24 21:10:22 -07:00
Andy Matuschak 69e4e7cc49 Last few bits from the rearchitecting branch... 2008-07-24 20:49:48 -07:00
Andy Matuschak fe9dedb9ad 4300+-line merge! This will probably break the world.
Merging in rearchitecting work done in lp:~andymatuschak/sparkle/rearchitecting. There are some MAJOR compatibility issues you'll notice if you do most non-default things with Sparkle, so please read the commit log. Delegate methods are changed and most API is private now, to summarize.
2008-07-24 20:44:27 -07:00
Andy Matuschak 47e6a96800 Stripping framework thoroughly after release builds. This will probably bite me in the ass when I get some crash report and its contents are totally useless. 2008-07-24 20:36:24 -07:00
Andy Matuschak f42fb51952 Made automaticallyChecksForUpdates and updateCheckInterval KVO-compliant. 2008-07-24 20:15:04 -07:00
Andy Matuschak 1aea1b699a The Sparkle preference keys are now declared private / deprecated / allowed to change without me receiving hate email. However! SUUpdater is now KVC-compliant for:
automaticallyCheckForUpdates
updateCheckInterval
feedURL
2008-07-24 20:11:09 -07:00
Andy Matuschak e769ba58cc Reordered Sparkle.h to emphasize SUUpdater.h
Removed reference to the RSS class from SUAppcast.h
2008-07-24 19:35:29 -07:00
Andy Matuschak f815eec2c0 Fixes 243884
Made Sparkle.h no longer a massive multi-headed abomination: now only SUAppcastItem, SUAppcast and SUUpdater (and SUVersionComparisonProtocol because it's part of the delegate protocol) are public.

COMPATIBILITY ISSUE:
This means there's no longer a public SUProbingUpdateDriver or a checkForUpdatesWithDriver: method. Now use checkForUpdateInformation. I may change that API before release, though. I'm thinking it might be better to give the delegate the opportunity to reject a potential update instead: then you'd just call checkForUpdatesInBackground and override that delegate method to always return NO. We'll see.
2008-07-23 23:40:01 -07:00
Andy Matuschak de9be8b481 Fixes 244428
Removed all Cocoa categories from Sparkle by integrating things into other classes or making categories on existing Sparkle classes. Whoo!
2008-07-23 22:49:47 -07:00
Andy Matuschak 7454b8f2f6 Small changes for clarity. 2008-07-23 21:42:32 -07:00
Andy Matuschak b4c7dbe478 Added a guard to the piped unarchiver to fail more gracefully for bad filenames of very short length. 2008-07-23 20:54:10 -07:00
Andy Matuschak e14727dcc3 More reliable bzr revision labeling script (shouldn't break the compilation). 2008-07-23 20:41:49 -07:00
Andy Matuschak ac4e4e405b Fixes 245991
COMPATIBILITY ISSUE:
Changed updatePreferencesChanged to resetUpdateCycle to give better semantics for bundle-ish apps which need to start the update cycle manually since applicationDidFinishLaunching: won't do the right thing.
2008-07-23 20:27:01 -07:00
Andy Matuschak 898216ac9f Final fix for 246469 (I hope). Fixed a mind-bogglingly stupid typo which Xcode let compile for some reason. 2008-07-23 12:36:59 -07:00
Andy Matuschak c42e3a3f47 Fixed 251010
Fixes from Matt Stevens:
"For background applications (menu bar, completely UI-less, etc) there are a couple of issues with Sparkle notifications:

- When prompts such as the initial prompt to enable update checking are displayed they can be hidden behind other windows since the background app is not in focus. This can cause problems, as these prompts run modally and can stop the application from functioning without the user knowing why.

- If the update notification window is displayed and the user clicks away to another application, the window disappears and there is no way to get it back since there is no other UI to cause the app to activate. In this case the update should probably operate as a standard window since it is effectively operating as the application's UI."
2008-07-22 22:36:09 -07:00
Matt Stevens cec9166956 Improved notification handling for otherwise UI-less background applications. 2008-07-22 20:24:12 -06:00
Andy Matuschak 675c66ff9d Fixes 250170
Sparkle now remembers to call the delegate's didFindValidUpdate method when using a UI-based update controller. Thanks, Stefan Schimanski!
2008-07-21 23:40:52 -07:00
Andy Matuschak 962a110b16 Merged in the branch moving Sparkle back to literal path extensions from UTIs. 2008-07-21 23:18:21 -07:00
Andy Matuschak 405410b8c8 Updates to the French localization courtesy Ronald Leroux. 2008-07-21 23:16:11 -07:00
Andy Matuschak 32e014af06 Actually added the Swedish localization to the Xcode project. Oops. 2008-07-21 21:07:06 -07:00
Andy Matuschak 0af86bbb9d Hopefully actually fixing 246469: it seems that while Cocoa documents its use of gzip as having the MIME type "application/gzip", it actually uses (what it's supposed to) "application/x-gzip". 2008-07-21 20:55:04 -07:00
Andy Matuschak a31dc3a102 Fixes BOOL user defaults lookup for registered defaults on Tiger. 2008-07-17 21:19:07 -07:00
Andy Matuschak 7b212ea7fd Fixes 247749
SULocalizedString now uses a hardcoded identifier for Sparkle instead of trying to detect it with bundleForClass:[self class]. A little more robust, a little more brittle.
2008-07-17 00:27:17 -07:00
Andy Matuschak b3f3944495 Fixes 244857
Made a first crack at redifining the SUUpdater delegate protocol. Still not sure about a couple things, so please don't change your delegate methods to conform until this gets merged into trunk.

Also made the SUUpdateDrivers not have the updater's delegate as their delegate (that was really icky). Now they're just coupled with the SUUpdater, which is icky as well, but less icky, at least.
2008-07-16 23:51:39 -07:00
Andy Matuschak 58a05e2ee7 Fixes 243533 (for real this time, I hope)
I've undone all the UTI nonsense: I don't see any reason to use it if the underlying frameworks are just going to do dumber path extension comparison that what I'm already doing. I've switched back to the tried-and-true method.

I also made SUUnarchiver* path-based instead of NSURL-based because I realized that the latter didn't make any sense given that we're only unarchiving local files.
2008-07-16 22:48:10 -07:00
Andy Matuschak 3146ffb8e1 Fixes 248929, 244738
Removed NSWorkspace+RBAdditions: we're now checking if the volume is read-only instead of specifically whether it's a disk image.

This also means the warning string changed. Sorry, localizers!
2008-07-16 22:15:29 -07:00
Andy Matuschak b815ce9db4 Making *really* sure that "checking for updates..." window gets closed in all cases. 2008-07-16 21:14:43 -07:00
Andy Matuschak b14aa16a23 Merging in Swedish localization courtesy Daniel Bergman. Thanks! 2008-07-16 20:17:04 -07:00
Andy Matuschak 4397d85727 Merging crazy refactoring branch up to trunk. 2008-07-15 23:30:37 -07:00
Andy Matuschak 98832c4914 Beginnings of insane SUHost-based refactoring to get rid of NSBundle+Sparkle. More super-unstable refactorings to come... 2008-07-15 23:26:06 -07:00
Andy Matuschak 720269b118 Fixes 248581
Now putting the license in the resources folder of the built Sparkle.framework.
2008-07-15 21:53:13 -07:00
Andy Matuschak c9bd13213b Fixes 246469
This should fix the DSA-signing-on-tar-gzs issue. Sparkle now doesn't let NSURLDownload extract .gzips for us, which was making the data being verified different from the data being signed.
2008-07-15 21:36:48 -07:00
Andy Matuschak 5fdddaeede Slight project-y tweaks: now only building the host arch for development. 2008-07-15 21:00:07 -07:00
Andy Matuschak 8570539aab Hopefully finally fixing 245744; it wasn't fixed by the previous revision that claimed it was. There was a tricksy subclassing nuance that eluded me. 2008-07-15 20:57:57 -07:00