[Adium-devl] Automatic update to betas?
David Smith
catfish.man at gmail.com
Fri May 11 18:30:39 UTC 2007
The following patch should do the trick; I'd like folks on the list
to look over it, though, because if I got something wrong (which has,
uh, happened before in this part of the code) it might have bad
effects like everyone being updated to betas.
Index: Source/AIAdium.m
===================================================================
--- Source/AIAdium.m (revision 19657)
+++ Source/AIAdium.m (working copy)
@@ -1165,10 +1165,13 @@
#pragma mark Sparkle Delegate Methods
+#define BETA_UPDATE_DICT [NSDictionary
dictionaryWithObjectsAndKeys:@"type", @"key", @"Update Type",
@"visibleKey", @"beta", @"value", @"Beta or Release Versions",
@"visibleValue", nil]
+#define RELEASE_UPDATE_DICT [NSDictionary
dictionaryWithObjectsAndKeys:@"type", @"key", @"Update Type",
@"visibleKey", @"release", @"value", @"Release Versions Only",
@"visibleValue", nil]
+
#if BETA_RELEASE == FALSE
-#define UPDATE_TYPE_DICT [NSDictionary
dictionaryWithObjectsAndKeys:@"type", @"key", @"Update Type",
@"visibleKey", @"release", @"value", @"Release Versions Only",
@"visibleValue", nil]
+#define UPDATE_TYPE_DICT RELEASE_UPDATE_DICT
#else
-#define UPDATE_TYPE_DICT [NSDictionary
dictionaryWithObjectsAndKeys:@"type", @"key", @"Update Type",
@"visibleKey", @"beta", @"value", @"Beta or Release Versions",
@"visibleValue", nil]
+#define UPDATE_TYPE_DICT BETA_UPDATE_DICT
#endif
/* This method gives the delegate the opportunity to customize the
information that will
@@ -1201,7 +1204,7 @@
[profileInfo addObject:entry];
- [profileInfo addObject:UPDATE_TYPE_DICT];
+ [profileInfo addObject:[defaults
boolForKey:@"AIAlwaysUpdateToBetas"] ? BETA_UPDATE_DICT :
UPDATE_TYPE_DICT];
[defaults setBool:YES forKey:@"AIHasSentSparkleProfileInfo"];
On May 11, 2007, at 10:47 AM, Andre-John Mas wrote:
> Hi,
>
> There are some users who like living on the edge and want to be there
> for every beta. How complicated would it be to provide an option in
> Adium to be offered an update to a beta, when you currently using a
> non-beta, using sparkle? I know I am probably just looking for
> something to suit my laziness, but it doesn't hurt to ask :)
>
> Andre
>
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
More information about the devel
mailing list