mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
Include the version with the update request
This commit is contained in:
@@ -34,7 +34,9 @@ void RelaunchToInstallUpdate() {
|
||||
void AutoUpdater::SetFeedURL(const std::string& feed) {
|
||||
if (g_updater == nil) {
|
||||
// Initialize the SQRLUpdater.
|
||||
NSURL* url = [NSURL URLWithString:base::SysUTF8ToNSString(feed)];
|
||||
NSString *version = NSBundle.mainBundle.sqrl_bundleVersion;
|
||||
NSString *urlString = [NSString stringWithFormat:@"%@?version=%@", base::SysUTF8ToNSString(feed), version];
|
||||
NSURL* url = [NSURL URLWithString:urlString];
|
||||
NSURLRequest* urlRequest = [NSURLRequest requestWithURL:url];
|
||||
g_updater = [[SQRLUpdater alloc] initWithUpdateRequest:urlRequest];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user