mirror of
https://github.com/HackPlan/quark-shell-mac.git
synced 2026-04-30 12:32:32 +08:00
Update updater links to master branch.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## AppCast.xml
|
## 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
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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:
|
We provide two JavaScript APIs for checking update, both require an URL to AppCast.xml:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
mw.checkUpdate("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/updater/updater/SampleAppcast.xml")
|
mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml")
|
||||||
```
|
```
|
||||||
|
|
||||||
## Under the Hood
|
## Under the Hood
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ mw.unpin()
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
// Check for update
|
// Check for update
|
||||||
mw.checkUpdate("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/updater/updater/SampleAppcast.xml")
|
mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml")
|
||||||
```
|
```
|
||||||
|
|
||||||
More detail: [AutoUpdate.md](Docs/AutoUpdate.md)
|
More detail: [AutoUpdate.md](Docs/AutoUpdate.md)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ static NSString * const kWebScriptNamespace = @"mw";
|
|||||||
|
|
||||||
+ (void)initialize
|
+ (void)initialize
|
||||||
{
|
{
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@"WebKitDeveloperExtras"];
|
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"WebKitDeveloperExtras"];
|
||||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<button onclick="mw.openPreferences()">Preferences</button>
|
<button onclick="mw.openPreferences()">Preferences</button>
|
||||||
<button onclick="mw.openURL('https://github.com/xhacker')">Open URL</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>
|
||||||
<p>
|
<p>
|
||||||
<button onclick="setIcon()">Set Icon</button>
|
<button onclick="setIcon()">Set Icon</button>
|
||||||
|
|||||||
@@ -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/">
|
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<channel>
|
<channel>
|
||||||
<title>Menubar WebKit</title>
|
<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>
|
<description>Most recent changes with links to updates.</description>
|
||||||
<language>en</language>
|
<language>en</language>
|
||||||
<item>
|
<item>
|
||||||
<title>Version 6.23</title>
|
<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>
|
<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" />
|
<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>
|
<sparkle:minimumSystemVersion>10.9</sparkle:minimumSystemVersion>
|
||||||
|
|||||||
Reference in New Issue
Block a user