Skip to content

electron-forge error occurs as soon as i open my app made via make coomand when used nutjs node native module #3369

Open
@pycraft114

Description

@pycraft114

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.4.1

Electron version

26.1.0

Operating system

macos ventura 13.3.1

Last known working Electron Forge version

No response

Expected behavior

Electron-forge successfully builds with use of nutjs node native module by electron-forge start command

Actual behavior

but as soon as i build with osxSign and osxNotarize

Uncaught Exception:
Error: dlopen(/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN, 0x0001): tried: '/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (code signature in <E490A615-E132-35C0-AFD2-1B55963F0668> '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/System/Volumes/Preboot/Cryptexes/OS/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (no such file), '/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (code signature in <E490A615-E132-35C0-AFD2-1B55963F0668> '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (code signature in <E490A615-E132-35C0-AFD2-1B55963F0668> '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (no such file), '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' (code signature in <E490A615-E132-35C0-AFD2-1B55963F0668> '/private/var/folders/ns/tys7qr996jbg7h577n3yr_fr0000gn/T/.com.electron.write.7oJreN' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?))
at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:1822)
at Object.<anonymous> (node:internal/modules/cjs/loader:1356:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2049)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at node:internal/modules/cjs/loader:967:12
at Function._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:110:18)
at 1914 (/Volumes/Write/Write.app/Contents/Resources/app.asar/.webpack/main/index.js:6602:14)
at __webpack_require__ (/Volumes/Write/Write.app/Contents/Resources/app.asar/.webpack/main/index.js:48469:42)

this runtime error occurs

index.js:6602 line is the line that has a require with build nutjs package

Steps to reproduce

  • import any function from nutjs
  • run make command with osxSign and osxNotarize
  • see error

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions