mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Expanded the download progress text field.
Added a step to preprocess feed URLs to remove quotes so that pre-processed plist files can have the URL defined in code. Patch courtesy Philippe Casgrain.
This commit is contained in:
1 parent
ef89e4208d
commit
905306c096
3 files changed
+4
-3
No files matched your search
Generated
+1
-1
@@ -13,7 +13,7 @@
|
||||
<integer>6</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>9B18</string>
|
||||
<string>9C31</string>
|
||||
<key>targetFramework</key>
|
||||
<string>IBCocoaFramework</string>
|
||||
</dict>
|
||||
|
||||
Generated
BIN
Binary file not shown.
+3
-2
@@ -217,15 +217,16 @@ static SUUpdater *sharedUpdater = nil;
|
||||
updateInProgress = YES;
|
||||
|
||||
// A value in the user defaults overrides one in the Info.plist (so preferences panels can be created wherein users choose between beta / release feeds).
|
||||
NSString *appcastString = [[SUUserDefaults standardUserDefaults] objectForKey:SUFeedURLKey];
|
||||
NSString *appcastString = [[SUUserDefaults standardUserDefaults] objectForKey:SUFeedURLKey]; // if URL is quoted (because of pre-processing in plist files), remove quotes from the string
|
||||
if (!appcastString)
|
||||
appcastString = [hostBundle objectForInfoDictionaryKey:SUFeedURLKey];
|
||||
if (!appcastString)
|
||||
[NSException raise:@"SUNoFeedURL" format:@"You must specify the URL of the appcast as the SUFeedURLKey in either the Info.plist or the user defaults!"];
|
||||
|
||||
NSCharacterSet* quoteSet = [NSCharacterSet characterSetWithCharactersInString: @"\"\'"];
|
||||
SUAppcast *appcast = [[SUAppcast alloc] init];
|
||||
[appcast setDelegate:self];
|
||||
[appcast fetchAppcastFromURL:[NSURL URLWithString:appcastString] parameters:[self feedParameters]];
|
||||
[appcast fetchAppcastFromURL:[NSURL URLWithString:[appcastString stringByTrimmingCharactersInSet:quoteSet]] parameters:[self feedParameters]];
|
||||
}
|
||||
|
||||
- (BOOL)newVersionAvailable
|
||||
|
||||
Reference in new issue
Block a user