Commit Graph

  • 50b76d59f7 Add missing include. Uli Kusterer 2009-12-15 16:51:01 +01:00
  • 4f76b42bb5 If we install under a normalized name, make sure we take owner/group from the target directory, not from a nonexistent destination application we haven't installed yet. Uli Kusterer 2009-12-15 16:50:43 +01:00
  • d593ab38ad Fix configuration for finish_installation.app target: Otherwise it won't build correctly on 10.4 and gives us "unsupported required load command" errors instead of starting up. Uli Kusterer 2009-12-15 16:49:35 +01:00
  • a17f974357 Merge branch 'master' of github.com:uliwitness/Sparkle Uli Kusterer 2009-12-15 16:31:19 +01:00
  • 40dee9958b Added Portuguese translation courtesy Sérgio Miranda. Thanks! Andy Matuschak 2009-12-14 22:35:56 -06:00
  • 575bdda768 Make sure that, even on 10.4, we delete our temp folder. Also, we no longer use the stop-gap measure of trashing the temp folder, we really delete it after successful installation. Uli Kusterer 2009-12-14 22:36:34 +01:00
  • 9b116929ad Slightly more user-suitable error message. Uli Kusterer 2009-12-14 22:34:49 +01:00
  • 2e8fa61a5a More more correct way of creating an NSString from a C-string path. Uli Kusterer 2009-12-14 22:34:25 +01:00
  • cd93eb9098 Method for removing a file with optional authorization. Uli Kusterer 2009-12-14 22:33:00 +01:00
  • 4c765d86ee More correct way of turning a C-string path into an NSString. Uli Kusterer 2009-12-14 22:32:32 +01:00
  • fa8aaced55 Make sure we also delete the temp dir when the user clicks "cancel" during the download. Uli Kusterer 2009-12-14 22:30:56 +01:00
  • 1b02ab5f7f Make sure we delete the temp directory. Uli Kusterer 2009-12-14 22:28:47 +01:00
  • 0e609cc528 Make sure we delete the temp directory. Uli Kusterer 2009-12-14 22:28:14 +01:00
  • 5ec4c74b0b Fix typo in LONG_INSTALLATION_TIME constant. Uli Kusterer 2009-12-14 22:24:48 +01:00
  • 4d7006950a Make sure mdimport is run synchronously, not asynchronously. Uli Kusterer 2009-12-14 22:22:23 +01:00
  • e49a69895a Fix authorized file moving code: - We now correctly handle the case where the containing directory doesn't allow us adding files without authorization (e.g. /Applications). - We do the quarantine release *before* the copy. Uli Kusterer 2009-12-14 22:21:27 +01:00
  • 27f2b9c219 Move 10.4 SDK setting into xcconfig file. Uli Kusterer 2009-12-14 22:18:15 +01:00
  • db820fbb0f updated the installer program to show an icon when the installation takes 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 * Patrick Stein 2009-12-12 13:52:42 +01:00
  • ad4e9c74e0 changed back 10.4 settings cause it broke the updater on 10.4 Patrick Stein 2009-12-11 19:44:22 +01:00
  • 4797446f7c Be paranoid and wait for the mdimport to finish before we launch the app. Might make spurious "no executable" errors a bit less likely. Uli Kusterer 2009-12-11 15:17:59 +01:00
  • 0ffcde4fbb Make sure we delete the temporary folder when the user cancels the download. Also make sure we delete it on 10.4, which seems to have a bug in removeFileAtPath: that won't delete nested empty folders. As a quick fix, I just trash the folder in that case. We already put the old version in the trash anyway, and this saves me from having to write, test and debug a recursive removal function. Uli Kusterer 2009-12-11 15:13:30 +01:00
  • f555e1143f Merge remote branch 'uliwitness/master' Patrick Stein 2009-12-11 14:54:32 +01:00
  • bc3fd4542b Remove 10.4 SDK setting. Causes more problems than it helps. Uli Kusterer 2009-12-11 14:46:30 +01:00
  • d3fac14586 Merge remote branch 'uliwitness/master' Patrick Stein 2009-12-11 13:31:39 +01:00
  • d0425a140a Updating an application now longer shows the installation application n the Dock (LSUIElement) , Removed TransformProcessType call as it will force the installer application to show in the Dock. Patrick Stein 2009-12-11 13:28:10 +01:00
  • 64ec0c317e Tests for version numbers with build numbers. Uli Kusterer 2009-12-11 13:10:29 +01:00
  • 5f694f82af Intermediate Update directory name contains the version number of the downloaded version Patrick Stein 2009-12-11 12:53:52 +01:00
  • 590122f25a Merge remote branch 'andymatuschak/master' Uli Kusterer 2009-12-11 12:51:33 +01:00
  • 9b670b9ea7 removed cmdline installation tool and copied installation app to Sparkle framework. Patrick Stein 2009-12-11 12:24:41 +01:00
  • 65e836cba1 fixed Version Comparision , added more testcases Patrick Stein 2009-12-11 12:12:23 +01:00
  • c634f61f2a commented unused boxView code. Patrick Stein 2009-12-11 11:55:29 +01:00
  • 776e78c459 added Prefix header to finish_installation_tool added SystemConfiguration.framework to Sparkle added SUWindowController.m to finish_installation_tool added SUStatusController.m to finish_installation_tool Patrick Stein 2009-12-11 11:51:15 +01:00
  • a03235851c Removing GNU-style ?: operators. Thanks for the report, Uli. Andy Matuschak 2009-12-10 15:52:47 -08:00
  • d2f843f92c Danish localization updates. Uli Kusterer 2009-12-08 19:09:11 +01:00
  • e9c69673ad Set floating window level on the update alert again, but only for bg-only apps. Don't want to annoy users by having an always-visible panel. Uli Kusterer 2009-12-08 19:03:20 +01:00
  • a453afa29a Delegate can now control how version numbers are formatted/displayed to the user, so we can e.g. exclude build numbers or whatever makes sense for a particular application. Uli Kusterer 2009-12-08 19:02:10 +01:00
  • cee669c276 Shutting up warnings due to missing includes and fix indentation on one line. Uli Kusterer 2009-12-08 18:58:59 +01:00
  • 2e0c1b0086 One more SULog() replacing an NSLog(). Uli Kusterer 2009-12-08 00:44:01 +01:00
  • 7686c86792 Adjust the width of the status window so all localizations fit. Uli Kusterer 2009-12-08 00:43:08 +01:00
  • 2e0f0211d1 We now really put the old app in the trash (and any file we have to move out of the way to install a new app when we reset an edited name), even on non-admin user accounts. +++ TODO: Work around double authorization. Uli Kusterer 2009-12-08 00:37:39 +01:00
  • 4f8d745305 Changed a few NSLogs() to SULogs(). Uli Kusterer 2009-12-08 00:36:07 +01:00
  • 9788c6849e We should now correctly replace renamed apps, trashing the custom-named one, installing a new one with a default name, and also moving out of the way any existing copy with the default name. Uli Kusterer 2009-12-08 00:29:55 +01:00
  • 48dfbac37a Don't insist on having a file to replace. When we normalize the name, we may not have one. Uli Kusterer 2009-12-08 00:20:29 +01:00
  • e4eccce811 Updated localizations. Uli Kusterer 2009-12-08 00:17:50 +01:00
  • 097c2fea42 Build for more than just current architecture. We only build 32-bit because otherwise we'll get errors against 10.4 SDK (where 64-bit AppKit is not yet supported). Uli Kusterer 2009-12-07 23:52:43 +01:00
  • 5a5b171a68 Commented preprocessor switches. Added a named switch for normalizing an app name (it was just a #if 1 before). Uli Kusterer 2009-12-04 09:35:20 +01:00
  • 343d6866c4 - finish_installation is now a real bundled app, so it can be localized. - 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. Uli Kusterer 2009-12-04 09:20:21 +01:00
  • 2ad144c739 Partial Elgato string merges. Uli Kusterer 2009-12-04 09:13:25 +01:00
  • 983ad61d78 Maybe that makes the progress bar animate? No, it doesn't. Uli Kusterer 2009-12-04 09:12:42 +01:00
  • 27e87143e1 target is an ObjC object, so nil, not NULL. Uli Kusterer 2009-12-04 09:11:50 +01:00
  • d0b802e09b Added preprocessor defines to SUConstants.h for turning on/off DSA and downgrades. We let users downgrade using our URL scheme, and we warn them beforehand, so the downgrade possible attack paranoia gets in the way. Uli Kusterer 2009-12-04 09:11:11 +01:00
  • 8c67631efb Use installPath, not bundlePath here. Uli Kusterer 2009-12-04 09:06:55 +01:00
  • 18df114b70 Bring window to front when progress panel changes to "Install and restart", it's essentially a new alert coming up. Uli Kusterer 2009-12-04 08:52:42 +01:00
  • c51bf739cf Shut up undeclared selector warning. Uli Kusterer 2009-12-04 08:51:13 +01:00
  • 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). Uli Kusterer 2009-12-04 08:40:46 +01:00
  • bbcfe7edf4 - More WIP creating finish_installation that waits 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. Uli Kusterer 2009-12-04 07:46:07 +01:00
  • a11578a863 WIP turning the relaunch tool into a finish_installation tool. Uli Kusterer 2009-12-04 07:40:28 +01:00
  • b546304d5d Updated Danish localization courtesy David Munch. Andy Matuschak 2009-11-28 12:37:27 -08:00
  • d7774c0dc0 performed a code review, specifically: Sean McBride 2009-10-31 21:07:00 -04:00
  • bd80144c7b Fixing #456514: Appcast download crashes on 10.5 if download fails Andy Matuschak 2009-10-20 13:55:03 -07:00
  • 315cbaab1b Merge branch 'master' of git://github.com/andymatuschak/Sparkle Andy Kim 2009-09-29 18:33:44 -07:00
  • af37928283 Fixed a Spanish localization issue in the update permissions prompt; fixed release-mode compatibility for Leopard. Andy Matuschak 2009-09-20 00:15:06 -04:00
  • 6a3df43017 Fixed Bug #428216: "Update alert does not use a proper emdash" Andy Matuschak 2009-09-19 16:55:16 -04:00
  • c747ffc35b Fixed Bug #428216: "Update alert does not use a proper emdash" Andy Matuschak 2009-09-19 16:55:16 -04:00
  • 7bfbe83d87 When failing to parse a feed item, tell the developer *what* the error is. No need for a full-fledged NSError because these errors only go to the console, not displayed to the user (who doesn't care). Joachim Bengtsson 2009-09-06 19:17:17 +02:00
  • a871569867 Bug #423014: "Translation errors in Spanish and Italian" Joy Zhao 2009-09-03 23:42:46 -07:00
  • 65b071eb86 If no suitable packages or bundles are found to be installed, Sparkle will install the first package it finds in the distribution archive. Grant Erickson 2009-09-03 23:29:50 -07:00
  • 0e99d4fa80 Bug #402074: ".pkg installations should support asynchronous installation" Christiaan Hofman 2009-09-03 23:20:03 -07:00
  • 8f00c3c274 Fixing Bug #422201: ""Checking for updates..." needs to be added to spanish (es.lproj) strings" Andy Matuschak 2009-09-01 20:36:46 -07:00
  • 4fad53007f Change availability checks so that they build on 10.4 Stuart Morgan 2009-09-01 20:10:16 -07:00
  • e7435964a2 Fixing Bug #421608: "Update fails if more than one .app exists in the archive" Andy Matuschak 2009-08-30 20:24:28 -07:00
  • 8ea15468b4 Updated the Spanish localization. Ernesto Gomez Cereijo 2009-08-28 09:17:35 -07:00
  • 9025bef687 Fixed moving to trash on Tiger. Andy Matuschak 2009-08-27 22:04:51 -07:00
  • ffc44bb089 Added a space in the description of the SUNoFeedURL exception becuase it led me to believe that the value of SUFeedURLKey was actually @"SUFeedURLKey" and not @"SUFeedURL". Fraser Speirs 2009-08-27 11:29:15 +01:00
  • 6c968489eb Bug #381138: "Translator erros on check updates dialog" A bunch of small localization tweaks courtesy Joy Zhao. Andy Matuschak 2009-08-27 00:54:21 -07:00
  • 2fc1b66a79 Fixing: Bug #389869: "Sparkle runs thread-unsafe code on secondary threads" Bug #312995: "Canceling authentication request causes crash on next update" Bug #388793: "Need to notify SUUpdateDriverFinishedNotification on main thread" Andy Matuschak 2009-08-27 00:43:32 -07:00
  • bd99d0451d Fixing Bug #274872: "Activate host app on automatic update when when host runs in background" Andy Matuschak 2009-08-27 00:04:53 -07:00
  • d62e47cd2e Fixing Bug #416798: "Sparkle should warn developers if the app has no public key and the appcast isn't https://" Andy Matuschak 2009-08-27 00:02:10 -07:00
  • ab23fedd0c Merge branch 'master' into delta-updates Mark Rowe 2009-08-23 15:18:46 -07:00
  • 43a603c1cc if the user chooses to not restart the host app after installing the new version, the Sparkle update status window goes away and stops annoying the user by staying on screen; originally by simX, http://github.com/rentzsch/clicktoflash/commit/c768f07087c769f12f7645e78dd42802da46048b Simone Manganelli 2009-08-23 14:19:57 -07:00
  • 9b5b541c82 Fix for Sparkle crasher in scheduleNextUpdateCheck. Originally by lapcat, http://github.com/rentzsch/clicktoflash/commit/f7ca07b3e6e6e13de8133d8e237f284f2ccdc066 Simone Manganelli 2009-08-23 14:16:02 -07:00
  • 119bac527f Merge branch 'bdash/leak-fixes' Andy Matuschak 2009-08-23 09:52:55 -07:00
  • e9bc6a2915 Merge branch 'leak-fixes' of git://github.com/bdash/sparkle into bdash/leak-fixes Andy Matuschak 2009-08-23 09:52:40 -07:00
  • 2979338f8a Merge branch 'master' of git://github.com/bdash/sparkle into bdash/custom-user-agent-string Andy Matuschak 2009-08-23 09:46:39 -07:00
  • 830f633a6e Added new IB3 files for the changed localizations in the last revision. Updated the German localization, courtesy Christoph Schmitz. Andy Matuschak 2009-08-21 19:07:37 -07:00
  • 0d51d12e43 Merge branch 'master' into leak-fix Mark Rowe 2009-08-21 15:28:30 -07:00
  • 2d47989616 Remove bogus call to retain that results in a leak of an NSMethodSignature. Mark Rowe 2009-08-21 15:26:55 -07:00
  • f259b5e825 Return an autoreleased object as callers expect rather than leaking the dictionary. Mark Rowe 2009-08-21 15:25:06 -07:00
  • 3800b33c1a Merge branch 'master' into custom-user-agent-string Mark Rowe 2009-08-21 14:47:51 -07:00
  • dfe0eff095 Provide the ability to set a custom user agent string on all HTTP requests that Sparkle initiates. Mark Rowe 2009-08-21 14:46:39 -07:00
  • 8cdec40a03 Merge branch 'master' into delta-updates Mark Rowe 2009-08-21 14:40:05 -07:00
  • 6169234300 Rework the BinaryDelta tool to use NSOperationQueue in order to be slightly more portable. There's slightly less concurrency as a result as all archiving operations are now performed serially on the main thread. Since these make up a small percentage of the overall runtime, the increased portability makes this a reasonable tradeoff. Mark Rowe 2009-08-21 14:32:13 -07:00
  • 3ff2d82ecf Fix warnings and binary compatibility issues that crop up when building the BinaryDelta tool against different SDKs. Mark Rowe 2009-08-21 14:31:33 -07:00
  • 3ef4c09f71 Link against a static build of libxar as libxar.dylib didn't ship on Tiger. Mark Rowe 2009-08-21 14:30:27 -07:00
  • 79bd7ac090 Add an unarchiver for the delta format so that Sparkle can successfully install the delta updates. Mark Rowe 2009-08-21 14:27:31 -07:00
  • 6e648f14f4 Add support for parsing an extended <sparkle:deltas> element in the appcast that describes the delta updates that are available for a given version. Mark Rowe 2009-08-21 14:25:55 -07:00
  • c3d8254324 Add a command-line tool that can generate and apply a binary delta between two versions of an application. Mark Rowe 2009-08-21 14:25:02 -07:00
  • 15095640eb Fixing Bug #400536: @"The update is improperly signed." does not localized Andy Matuschak 2009-08-20 23:53:14 -07:00
  • 6070419761 Bug #377834: "MoreInfoView summary appears empty in SUUpdatePermissionPrompt in non-English locales" Andy Matuschak 2009-08-20 23:48:28 -07:00
  • db2f48ad09 Oops: *actually* finished doing the architecture configuration update. Andy Matuschak 2009-08-20 23:42:16 -07:00