Commit Graph
16 Commits
Author SHA1 Message Date
Uli Kusterer 43a0a7db4f Merge of changes from SVN repository:
- Changed NTSynchronousTask to also give the status return value and direct stderror output to the outputData.
- Changed includes so this builds as part of an app, too, not just as a framework
- Made sure SUAppcast's dealloc releases some leaked ivars.
- Added infoURL, extracted from link, that can point to a "more Info" page for download-less URLs
- Added support for version attribute on item so we can support update notifications that don't include an enclosure (e.g. paid upgrades, or upgrades that would require a system update)
- Added/improved a few description methods to ease debugging.
- Added SULog so one can ask for a special log with additional information when there are update issues.
- Added mayUpdateAndRestart for apps that absolutely, positively can't restart right now (e.g. cuz they're burning a CD and would produce a coaster).
- Added updaterWillRelaunchApplication delegate method, analogous to the notification. Useful to have app delegate quit helper apps during installation.
- Made SUBasicUpdateDriver's abortUpdate implicitly retain/autorelease the update driver, because the notification center otherwise releases it and it goes away, causing crashes in superclass's abortUpdate.
- Merge of SUKeepDownloadOnFailedInstallKey and SUFixedHTMLDisplaySizeKey.
- Avoid a few warnings about missing prototypes
- Be paranoid, hdiutil can verify the download again, so let it. Better for internal apps where we turn off DSA checks, too.
- SUHost has an -installationPath now, independent from the bundlePath, so one can normalize the app name from "MyApp 1.1b4" back to "MyApp" Users assume the file name contains the correct version number when there is one in it. Saves support a few round-trips each time.
- Be better at threading: Try calling non-thread-safe methods on main thread only, and don't assume delegates know when they need to be thread-safe, call them on main thread where possible.
- Added a method to put the old copy of the app in the trash. 1.5git changed in this spot, so I didn't actually merge the code that uses it back in yet.
- Fix version comparison so it doesn't get confused by bracketed build numbers in version strings
- Make sure cancel button is disabled during extraction, otherwise user would crash.
- Don't put auto-update window at floating window level. It's huge and can't be switched to background! If you're an NSBGOnly where you need that, turn it on only in that case, but don't generally do such nonsense.
- Hide release notes view if there aren't any.
- Test whether we are on dial-up before checking for updates in background. It's not nice to cause (possibly expensive) dial-up periodically.
- Temporarily comment out DSA complaints for easier testing.
- Don't store (possibly already invalidated) one-shot NSTimers in an ivar. It's bad style. Retain it instead.
- Decompress some monster expressions with nested method calls in ternary operators and nested in method calls again.
- Don't use implicit "id" for params or return types.
- finish_installation now puts up a progress window, so user knows update is still not finished.
- Use ThreadSafePreferences (included dummy version that uses regular prefs for projects that don't use ThreadSafePreferences).

- Todo later: Change finish_installation to be prettier.
2009-12-04 08:40:46 +01:00
Andy Matuschak 5090d4b3a0 Giving the "seconds" field a little more space. 2009-08-20 23:25:04 -07:00
Andy Matuschak c53f961690 Fixing Bug #272346: "Sparkle Test App needs to use the new preferences bindings" 2009-08-20 23:02:55 -07: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 50de4d78e5 Corrected a stupid commit of a test string. 2008-06-30 20:44:58 -07:00
Andy Matuschak 9e4b74ff24 Merged in fixes to some Tiger warnings. 2008-06-30 20:13:43 -07:00
Andy Matuschak d77ca73f51 You're not allowed to resize the test app's debug window. Come on. 2008-06-28 22:12:52 -07:00
Andy Matuschak a55f11d2ad Fixed 236240
Sparkle now detects if the preferences for automatic update checks or the time interval change mid-cycle.

If your product is a non-.app, you need to clue Sparkle in on the change by calling [[SUUpdater sharedUpdater] updatePreferencesChanged]. Sadly, there's no way to use NSUserDefaultsController to get to preferences which aren't managed by the host app.
2008-06-28 21:24:06 -07:00
Andy Matuschak 1d92b825ee Made the test app bind cmd+U to check for updates. 2008-06-28 18:30:19 -07:00
Andy Matuschak a39f0cfd00 Oops! Removed all the localized .nibs I just deleted from the Xcode project so that Sparkle will actually, you know, compile. Also added Test Application/main.m back in; it somehow didn't make the transition. 2008-05-11 17:47:06 -07:00
andym 8c3960fc5f Finished integrating SparklePlus profiling! Just set SUEnableSystemProfiling to YES in your info.plist. The Test App has this on by default so you all can see. 2008-02-15 04:17:26 +00:00
andym 645a96e13a Made a good deal more progress integrating the profile checking features. It should actually work now.
Interface for asking the user if they will allow the profile to be sent is forthcoming.
I also added some debug options to the test app's window; these may come in handy.
2008-01-24 16:29:34 +00:00
andym 631443f81a Updated project version numbers to 1.5
Cleaned up a couple things.
2008-01-23 07:10:40 +00:00
andym cd7ef45be0 Fixed a bug that could occur when the app has a localized CFBundleName. Thanks, Chuck Houpt. 2007-10-27 02:20:55 +00:00
andym a89a538334 Removed accidental additions to the test app's info.plist. 2007-08-24 13:29:50 +00:00
andym 7946696298 Added a minimum to the check interval so that developers don't accidentally release their apps into the wild with 60-second test check intervals and have DOS-attack-like results. It's an hour now for release mode; feel free to change it. Thanks to Charles D.H. Williams. 2007-08-23 02:28:25 +00:00