feat: add new ElectronSquirrelPreventDowngrades flag (#38625)
* sketch * feat: add new ElectronSquirrelPreventDowngrades flag * test: remove only * chore: fix lint
This commit is contained in:
parent
16aec702b4
commit
5bff0fe342
11 changed files with 449 additions and 15 deletions
|
@ -179,4 +179,11 @@ void AutoUpdater::QuitAndInstall() {
|
|||
}
|
||||
}
|
||||
|
||||
bool AutoUpdater::IsVersionAllowedForUpdate(const std::string& current_version,
|
||||
const std::string& target_version) {
|
||||
return [SQRLUpdater
|
||||
isVersionAllowedForUpdate:base::SysUTF8ToNSString(target_version)
|
||||
from:base::SysUTF8ToNSString(current_version)];
|
||||
}
|
||||
|
||||
} // namespace auto_updater
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue