Skip to content

Commit 1ba804d

Browse files
committed
Merge branch 'pu/pb/newSparkle' into stable
* pu/pb/newSparkle: Add update key Update Sparkle Framework
2 parents 63f6144 + 7bfcf9a commit 1ba804d

File tree

23 files changed

+51
-13
lines changed

23 files changed

+51
-13
lines changed

ApplicationController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#import "PBPrefsWindowController.h"
1717
#import "PBNSURLPathUserDefaultsTransfomer.h"
1818
#import "PBGitDefaults.h"
19+
#import "Sparkle/SUUpdater.h"
1920

2021
@implementation ApplicationController
2122
@synthesize cliProxy;
@@ -63,6 +64,10 @@ - (void)registerServices
6364

6465
- (void)applicationDidFinishLaunching:(NSNotification*)notification
6566
{
67+
[[SUUpdater sharedUpdater] setSendsSystemProfile:YES];
68+
#ifdef DEBUG_BUILD
69+
[[SUUpdater sharedUpdater] setFeedURL:[NSURL URLWithString:@"http://gitx.frim.nl/Downloads/appcast_DEBUG.xml"]];
70+
#endif
6671
[self registerServices];
6772

6873
// Only try to open a default document if there are no documents open already.

GitX.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
F5E92A1B0E88550E00056E75 /* empty_file.png in Resources */ = {isa = PBXBuildFile; fileRef = F5E92A1A0E88550E00056E75 /* empty_file.png */; };
115115
F5E92A230E88569500056E75 /* new_file.png in Resources */ = {isa = PBXBuildFile; fileRef = F5E92A220E88569500056E75 /* new_file.png */; };
116116
F5EF8C8E0E9D4A5D0050906B /* PBWebController.m in Sources */ = {isa = PBXBuildFile; fileRef = F5EF8C8D0E9D4A5D0050906B /* PBWebController.m */; };
117+
F5F7D0651062E7940072C81C /* UpdateKey.pem in Resources */ = {isa = PBXBuildFile; fileRef = F5F7D0641062E7940072C81C /* UpdateKey.pem */; };
117118
F5FC41F40EBCBD4300191D80 /* PBGitXProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = F5FC41F30EBCBD4300191D80 /* PBGitXProtocol.m */; };
118119
F5FC43FE0EBD08EE00191D80 /* PBRefMenuItem.m in Sources */ = {isa = PBXBuildFile; fileRef = F5FC43FD0EBD08EE00191D80 /* PBRefMenuItem.m */; };
119120
F5FE6C030EB13BC900F30D12 /* PBServicesController.m in Sources */ = {isa = PBXBuildFile; fileRef = F5FE6C020EB13BC900F30D12 /* PBServicesController.m */; };
@@ -278,6 +279,7 @@
278279
F5E92A220E88569500056E75 /* new_file.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = new_file.png; path = Images/new_file.png; sourceTree = "<group>"; };
279280
F5EF8C8C0E9D4A5D0050906B /* PBWebController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBWebController.h; sourceTree = "<group>"; };
280281
F5EF8C8D0E9D4A5D0050906B /* PBWebController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBWebController.m; sourceTree = "<group>"; };
282+
F5F7D0641062E7940072C81C /* UpdateKey.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = UpdateKey.pem; sourceTree = "<group>"; };
281283
F5FC41F20EBCBD4300191D80 /* PBGitXProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBGitXProtocol.h; sourceTree = "<group>"; };
282284
F5FC41F30EBCBD4300191D80 /* PBGitXProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBGitXProtocol.m; sourceTree = "<group>"; };
283285
F5FC43C30EBD050800191D80 /* PBRefContextDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBRefContextDelegate.h; sourceTree = "<group>"; };
@@ -403,6 +405,7 @@
403405
29B97317FDCFA39411CA2CEA /* Resources */ = {
404406
isa = PBXGroup;
405407
children = (
408+
F5F7D0641062E7940072C81C /* UpdateKey.pem */,
406409
F50A41130EBB872D00208746 /* Widgets */,
407410
47DBDB920E94F47200671A1E /* Preference Icons */,
408411
D26DC6440E782C9000C777B2 /* gitx.icns */,
@@ -743,6 +746,7 @@
743746
47DBDB6A0E94EF6500671A1E /* Preferences.xib in Resources */,
744747
47DBDBB10E94F6CA00671A1E /* Updates.png in Resources */,
745748
F569AE930F2CBD7C00C2FFA7 /* Credits.html in Resources */,
749+
F5F7D0651062E7940072C81C /* UpdateKey.pem in Resources */,
746750
);
747751
runOnlyForDeploymentPostprocessing = 0;
748752
};

Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>SUPublicDSAKeyFile</key>
6+
<string>UpdateKey.pem</string>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>English</string>
79
<key>CFBundleName</key>

Sparkle.framework/Versions/A/Headers/SUAppcastItem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@interface SUAppcastItem : NSObject {
1313
NSString *title;
1414
NSDate *date;
15-
NSString *description;
15+
NSString *itemDescription;
1616

1717
NSURL *releaseNotesURL;
1818

@@ -33,7 +33,7 @@
3333
- (NSString *)versionString;
3434
- (NSString *)displayVersionString;
3535
- (NSDate *)date;
36-
- (NSString *)description;
36+
- (NSString *)itemDescription;
3737
- (NSURL *)releaseNotesURL;
3838
- (NSURL *)fileURL;
3939
- (NSString *)DSASignature;

Sparkle.framework/Versions/A/Headers/SUUpdater.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
- (void)setFeedURL:(NSURL *)feedURL;
3737
- (NSURL *)feedURL;
3838

39+
- (void)setSendsSystemProfile:(BOOL)sendsSystemProfile;
40+
- (BOOL)sendsSystemProfile;
41+
42+
- (void)setAutomaticallyDownloadsUpdates:(BOOL)automaticallyDownloadsUpdates;
43+
- (BOOL)automaticallyDownloadsUpdates;
44+
3945
// This IBAction is meant for a main menu item. Hook up any menu item to this action,
4046
// and Sparkle will check for updates and report back its findings verbosely.
4147
- (IBAction)checkForUpdates:sender;
@@ -45,11 +51,14 @@
4551
// update is found, it will be downloaded and prepped for installation.
4652
- (void)checkForUpdatesInBackground;
4753

54+
// Date of last update check. Returns null if no check has been performed.
55+
- (NSDate*)lastUpdateCheckDate;
56+
4857
// This begins a "probing" check for updates which will not actually offer to update to that version. The delegate methods, though,
4958
// (up to updater:didFindValidUpdate: and updaterDidNotFindUpdate:), are called, so you can use that information in your UI.
5059
- (void)checkForUpdateInformation;
5160

52-
// Call this to appropriately schedule or cancel the update checking timer according to the preferences for time interval and automatic checks.
61+
// Call this to appropriately schedule or cancel the update checking timer according to the preferences for time interval and automatic checks. This call does not change the date of the next check, but only the internal NSTimer.
5362
- (void)resetUpdateCycle;
5463

5564
- (BOOL)updateInProgress;

Sparkle.framework/Versions/A/Resources/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.5 Beta 5</string>
18+
<string>1.5 Beta 6</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>282</string>
22+
<string>313</string>
2323
</dict>
2424
</plist>
Binary file not shown.

Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/info.nib

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/info.nib

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/info.nib

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

Sparkle.framework/Versions/A/Sparkle

9.82 KB
Binary file not shown.

UpdateKey.pem

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MIIDOjCCAi0GByqGSM44BAEwggIgAoIBAQCHqXl7R4gxSzQbs9Rx2aah2Gv2MbU9
3+
b32EboHrtPu3Exm3xXlqL9V0OafZjAjnAUOVPa8VprWcF3j/OWk6R6KGLM3ThUUz
4+
4XsqrKZGpHsTYIe+h8+ArTFnzsv2vHsNF2QkesDahE9lNGcgOQNyJy9XoWUJugaD
5+
JXpizG5fBDfVhOHDI8JPpDyHN9TSIgKYvgeKVvaE5sZ3csb7b1rP4gkB3q9c/h80
6+
ArBeBb5MOe1Iz0aVqidK0fJD66Ah29kvu9yUBkI8gYI/RsODpBS7BDpwZoTHf8TH
7+
TiYhF4fagzleQmda1+eP/FAJcKxmm1NfIBkPKzRaXtWU1jebea2TPMhDAhUAgGen
8+
jSgWMxjKWr9oVtlQqLrL+EMCggEABJHLgZObBVo+85CkJ/Mved+tcePXrWBwvQHE
9+
8k8I5LmjrFsvMauuwjUvRQm5QyHvys7xETaoR25UuqQFLengeMgt9gFRoWkkIpgS
10+
VNDT8z30+HLsO41w0dKIsn6va5yGkD2fXfSzEqx6qMLPEQJ5nLDJoX03gfZeNFxh
11+
9chRGJeo4twc1Or4G3EBurAn7Vr6rfQe21dogWTfAv9j6a22cOQObBc2B4z2S097
12+
jNtQ7W0DtYf8R+4qST6Jy7006KZdKmQeCJZaz1j24050VGTXi97wt7r7yXS7slZm
13+
o9hr5cXZTiMrREH098pPG36TEA8miVXxqUCJjDsKNMTyEsoNggOCAQUAAoIBAHHO
14+
Dhi58geSZQgzW+GEvPUAqQ0A/EMI5vNT8g3WsBLoMguWfntmoBjwZfwTue0EQyTU
15+
ouUOaiwtdbmz0XWbMOPIwjSOrWb3+nSQ8hc2m62xdFJnbv1JAYOJJKyjISY2+G6+
16+
tjWpmv8Or07ao/u61ofCPFWEJwCQE9myrUG6ACyte3GRHqGX3A2IY/J7Ncok4S6I
17+
Zlp27z6beY3BYOM9QUwH1J6VmJn0CXH5jpMFsRo/c/b3iFWFZ80AzDnaX7DXPw8d
18+
6BVyMZnw+YVNeam30i/at/Ic4hAxBuabBPMulurGY/c+nTW2QlIOCWDAnCQnJpQH
19+
ZSwhpZtVkisZuNaaK8M=
20+
-----END PUBLIC KEY-----

0 commit comments

Comments
 (0)