Add the getFeedURL API for macOS and Windows

This commit is contained in:
Samuel Attard 2016-07-15 00:04:48 +12:00 committed by Samuel Attard
parent ba887dbde7
commit 51687e1bc9
6 changed files with 22 additions and 0 deletions

View file

@ -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);
}