pear-electron 1.1.9 → 1.1.11

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 (4) hide show
  1. package/bin.js +1 -6
  2. package/boot.bundle +279 -145
  3. package/package.json +14 -17
  4. package/runtime.js +7 -5
package/bin.js CHANGED
@@ -7,22 +7,17 @@ if (!global.Pear && global.process) {
7
7
  const path = require('bare-path')
8
8
  const installed = global.Pear.config.entrypoint.startsWith('/node_modules/.bin/')
9
9
  const pkg = installed ? require('../pear-electron/package.json') : require('./package.json')
10
- const { runtimes } = pkg.pear
11
- const { encode } = require('hypercore-id-encoding')
12
- const link = require('pear-link')()
13
10
  const { isTTY } = require('pear-api/terminal')
14
11
  const bootstrap = installed ? require('../pear-electron/bootstrap') : require('./bootstrap')
15
12
 
16
13
  async function pearElectron () {
17
- const { protocol, drive } = link(runtimes)
18
14
  const { pathname } = new URL(global.Pear.config.applink)
19
15
  const opts = {
20
16
  id: global.Pear.pid,
21
17
  dir: installed ? path.join(pathname, 'node_modules', 'pear-electron') : pathname,
22
- link: protocol + '//' + encode(drive.key),
18
+ link: pkg.pear.bootstrap,
23
19
  only: installed ? ['/by-arch', '/prebuilds'] : ['/by-arch'],
24
20
  json: !isTTY,
25
- // checkout: drive.length,
26
21
  force: true
27
22
 
28
23
  }