Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
iosdeveloper committed Apr 11, 2016
1 parent ca804a9 commit a32c359
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions App/BitBar/BitBar-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.9.1</string>
<string>2-beta1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.9.1</string>
<string>2.0.0-beta1</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
Expand Down
4 changes: 3 additions & 1 deletion App/BitBar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# BitBar Changes

## v2
## v2 beta 1

* Added [streaming through stdout](Docs/LongRunningPlugins.md#streaming-through-stdout)
* Added [drop to plugin](README.md#metadata) (OS X 10.10 and later)
* For one click status bar action, the menu shows when pressing the alt key
* Fixed a crash when setting `root=true`

## v1.9.1

Expand Down
15 changes: 12 additions & 3 deletions App/BitBar/PluginManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ - (void) toggleOpenAtLogin:(id)sender {
}

- (void)openLatestRelease {
[WSPACE openURL:[NSURL URLWithString:@"https://github.com/matryer/bitbar/releases/latest"]];
[WSPACE openURL:[NSURL URLWithString:@"https://github.com/matryer/bitbar/releases"]];
}

- (NSArray*) pluginFilesWithAsking:(BOOL)shouldAsk {
Expand Down Expand Up @@ -361,9 +361,18 @@ - (void)getLatestVersion {
}
self.lastVersionUpdate = [NSDate date];

NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"https://api.github.com/repos/matryer/bitbar/releases/latest"]];
NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"https://api.github.com/repos/matryer/bitbar/releases"]];
if (data) {
NSDictionary *latest = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
NSArray *releases = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
NSDictionary *latest = nil;

for (NSDictionary *release in releases) {
if ([release[@"prerelease"] isEqual:@YES]) {
latest = release;
break;
}
}

if (latest[@"tag_name"]) {
self.latestVersion = latest[@"tag_name"];
if ([self.latestVersion hasPrefix:@"v"]) {
Expand Down

0 comments on commit a32c359

Please sign in to comment.