Update updater links to master branch.

This commit is contained in:
Xhacker Liu
2014-07-30 18:02:28 -07:00
parent eae1598c10
commit 5848ec48cc
5 changed files with 9 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
## AppCast.xml
To enable auto update, you need to prepare an **AppCast.xml** ([sample](https://github.com/HackPlan/menubar-webkit/blob/updater/updater/SampleAppcast.xml)) like this:
To enable auto update, you need to prepare an **AppCast.xml** ([sample](https://github.com/HackPlan/menubar-webkit/blob/master/updater/SampleAppcast.xml)) like this:
```xml
<?xml version="1.0" encoding="utf-8"?>
@@ -32,8 +32,8 @@ For safety reasons, you have to code sign your app properly to enable auto updat
We provide two JavaScript APIs for checking update, both require an URL to AppCast.xml:
```js
mw.checkUpdate("https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml")
mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml")
mw.checkUpdate("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml")
mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml")
```
## Under the Hood

View File

@@ -76,8 +76,8 @@ mw.unpin()
```js
// Check for update
mw.checkUpdate("https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml")
mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml")
mw.checkUpdate("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml")
mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml")
```
More detail: [AutoUpdate.md](Docs/AutoUpdate.md)

View File

@@ -27,7 +27,7 @@ static NSString * const kWebScriptNamespace = @"mw";
+ (void)initialize
{
[[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@"WebKitDeveloperExtras"];
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"WebKitDeveloperExtras"];
[[NSUserDefaults standardUserDefaults] synchronize];
}

View File

@@ -69,7 +69,7 @@
<p>
<button onclick="mw.openPreferences()">Preferences</button>
<button onclick="mw.openURL('https://github.com/xhacker')">Open URL</button>
<button onclick="mw.checkUpdate('https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml')">Check Update</button>
<button onclick="mw.checkUpdate('https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml')">Check Update</button>
</p>
<p>
<button onclick="setIcon()">Set Icon</button>

View File

@@ -2,12 +2,12 @@
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Menubar WebKit</title>
<link>https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml</link>
<link>https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml</link>
<description>Most recent changes with links to updates.</description>
<language>en</language>
<item>
<title>Version 6.23</title>
<sparkle:releaseNotesLink>https://rawgit.com/HackPlan/menubar-webkit/updater/updater/ReleaseNotes.html</sparkle:releaseNotesLink>
<sparkle:releaseNotesLink>https://rawgit.com/HackPlan/menubar-webkit/master/updater/ReleaseNotes.html</sparkle:releaseNotesLink>
<pubDate>Fri, 01 Jul 2011 00:00:00 +0800</pubDate>
<enclosure url="https://dl.dropboxusercontent.com/u/703669/menubar-webkit%20%282%29.zip" sparkle:version="2" length="1072667" type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.9</sparkle:minimumSystemVersion>