pear-runtime-updater 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -24,7 +24,6 @@ module.exports = class PearRuntimeUpdater extends ReadyResource {
24
24
  this.app = opts.app
25
25
  this.name = opts.name
26
26
  this.bundled = opts.bundled || !!this.app
27
- this.win32RestartAfterUpdate = opts.win32 && opts.win32.restart
28
27
 
29
28
  const { drive: upgrade } = link.parse(opts.upgrade)
30
29
  this.key = hid.decode(upgrade.key)
@@ -71,7 +70,7 @@ module.exports = class PearRuntimeUpdater extends ReadyResource {
71
70
  if (isWindows) {
72
71
  const MSIXManager = require('msix-manager') // require must be here for platform compatibility
73
72
  const manager = new MSIXManager()
74
- await manager.addPackage(nextApp, { restartOnUpdate: this.win32RestartAfterUpdate })
73
+ await manager.addPackage(nextApp)
75
74
  } else {
76
75
  await fsx.swap(nextApp, this.app)
77
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pear-runtime-updater",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Listens for OTA Pear App updates",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Holepunch Inc",