mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
* feat: native auto updater for MSIX on Windows * doc: added MSIX debug documentation * fix: allow downgrade with json release file and emit update-available * test: msix auot-update tests * doc: API documentation * test: add package version validation * fix: docs typo * fix: don't allow auto-updating when using appinstaller manifest * fix: getPackageInfo interface implementation * fix: review feedback, add comment * fix: missed filename commit * fix: install test cert on demand * fix: time stamp mismatch in tests * fix: feedback - rename to MSIXPackageInfo * fix: update and reference windowsStore property * fix: remove getPackagInfo from public API * fix: type error bcause of removed API
11 lines
396 B
TypeScript
11 lines
396 B
TypeScript
if (process.platform === 'win32') {
|
|
// windowsStore indicates whether the app is running as a packaged app (MSIX), even outside of the store
|
|
if (process.windowsStore) {
|
|
module.exports = require('./auto-updater/auto-updater-msix');
|
|
} else {
|
|
module.exports = require('./auto-updater/auto-updater-win');
|
|
}
|
|
} else {
|
|
module.exports = require('./auto-updater/auto-updater-native');
|
|
}
|