electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.59k stars 1.73k forks source link

Cannot read properties of undefined (reading 'Chromium Framework') #7182

Closed RayJason closed 1 year ago

RayJason commented 1 year ago

I tried to install chromium and chrome, both no avail. Recently I can only build x64.

mac:
  target:
    - target: dmg
      arch:
        - universal # failed

image

full config:

asar: true
directories:
  buildResources: resources
  output: release/${version}

files:
  - dist

artifactName: ${productName}-${version}.${ext}
icon: 'resources/icon.ico'

mac:
  target:
    - target: dmg
      arch:
        - universal

win:
  target:
    - target: nsis
      arch:
        - x64

dmg:
  contents:
    - x: 410
      y: 150
      type: 'link'
      path: '/Applications'

    - x: 130
      y: 150
      type: 'file'

nsis:
  oneClick: false
  perMachine: false
  allowToChangeInstallationDirectory: true
  deleteAppDataOnUninstall: false
mmaietta commented 1 year ago

From a rough guess, it looks like you're attempting to stitch together two massive ASARs. Can you try using mergeASARs: false?

RayJason commented 1 year ago

From a rough guess, it looks like you're attempting to stitch together two massive ASARs. Can you try using mergeASARs: false?

I updated the full config. It can't build in my mbp 14' M1 Pro, but success in friend's mba M2.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.