|
@@ -79,6 +79,10 @@ void AutoUpdater::OnWindowAllClosed() {
|
|
|
QuitAndInstall();
|
|
|
}
|
|
|
|
|
|
+std::string AutoUpdater::GetFeedURL() {
|
|
|
+ return "";
|
|
|
+}
|
|
|
+
|
|
|
void AutoUpdater::SetFeedURL(const std::string& url, mate::Arguments* args) {
|
|
|
auto_updater::AutoUpdater::HeaderMap headers;
|
|
|
args->GetNext(&headers);
|
|
@@ -109,6 +113,7 @@ void AutoUpdater::BuildPrototype(
|
|
|
v8::Isolate* isolate, v8::Local<v8::ObjectTemplate> prototype) {
|
|
|
mate::ObjectTemplateBuilder(isolate, prototype)
|
|
|
.SetMethod("checkForUpdates", &auto_updater::AutoUpdater::CheckForUpdates)
|
|
|
+ .SetMethod("getFeedURL", &auto_updater::AutoUpdater::GetFeedURL)
|
|
|
.SetMethod("setFeedURL", &AutoUpdater::SetFeedURL)
|
|
|
.SetMethod("quitAndInstall", &AutoUpdater::QuitAndInstall);
|
|
|
}
|