exit() logically guarantees the method will never return; this attribute allows the compiler to optimize for this case.
Fix improperly-named protocols.
They’re faster, even if they’re used outside of ARC. Use dispatch functions to spin off new threads. Update the Binary Delta tool's class to be better.
* origin/quiet-automatic-update: Allow manual checks when an install on quit update is pending Allow the delegate to trigger a silent install and relaunch Support silent relaunches Increment the sudden termination counter if installing on quit Set up install on quit for critical automatic updates too Updating Sparkle.strings for the new, more strongly worded strings that are displayed for a 'critical update' Prompts the user to update after a week (rather than a day) if he doesn't quit the app. Adding <sparkle:tags> appcast item element, <sparkle:criticalUpdate /> tag Fixed a no-autorelease-pool leak. We have this check box that says "Automatically download and install updates in the future." But we only download them automatically. We still ask permission again before installing them. Conflicts: SUBasicUpdateDriver.m en.lproj/Sparkle.strings finish_installation.m
…npacks -[SUHost installationPath] can return different values before and after the installation is performed, because it may attempt to normalize the installation path--but only if the normalized version of the path isn't already present. Which it would be after the installation had completed. Now we only compute the installation path once for the whole installation process.
This fixes pathToRelaunchForUpdater by supporting an executable path other than the host bundle path.
…e those installations were not kicked off by user action.
…con from 1.2 seconds to 5 seconds
…sing the "Install on Quit" functionality.
…longer use the stop-gap measure of trashing the temp folder, we really delete it after successful installation.
…akes more than 1.2 seconds, long installations have a program in the Dock short installations just look like the program is restarting some variable renaming to no longer have camelCasePath for char *
… n the Dock (LSUIElement) , Removed TransformProcessType call as it will force the installer application to show in the Dock.
…ed one, installing a new one with a default name, and also moving out of the way any existing copy with the default name.
- It contains its own copy of Sparkle.strings and SUUpdateStatus.nib so it can show its progress prettier - We call TransformProcessType() before our first call to [NSApplication sharedApplication], so we can be launched as a command line tool and get a proper window server connection, and so our progress bars animate. - We still support the old "relaunch"-style mode of operation, just by not passing the folder to install. This is useful for other relaunch occasions, like setting one's own dock icon flag. - To do: Make sample app use the new finish_installation.
- 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.
for quit, updates and relaunches the app, so updates don't happen while app is still running. NSBundle gets royally confused and points to the old path (loading new NIBs into the old app in the worst case) when you move a running app. - Temp folder is now user's desktop, as NSTemporaryDirectory() doesn't stay the same between two separate apps, and may be emptied on quit. - Relaunch gets created in App Support now, for same reasons as above. - Less dependency on prefix headers, that only leads to lazy, un-reusable code.