electron / universal

Create Universal macOS applications from two x64 and arm64 Electron applications
MIT License
112 stars 43 forks source link

Uncaught ReferenceError, as app is not defined as of @electron/universal@1.4.2 #80

Closed BaldvinTh closed 9 months ago

BaldvinTh commented 9 months ago

Electron Forge version

6.4.2

Expected behavior

Application built with universal architecture runs the correct architecture

Actual behavior

Uncaught exception as the script tries to utilize a function from undefined variable. Issue introduced in v1.4.2

Steps to reproduce

Build a universal application, make & run it

Additional information

image

soroushm commented 9 months ago

same here look like in entry-asar/has-asar.js use app but is not imported so we are getting this error

const appPath = app.getAppPath();