Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to package NSFW with a notarized app? #180

Open
jagthedrummer opened this issue Jun 7, 2023 · 1 comment
Open

How to package NSFW with a notarized app? #180

jagthedrummer opened this issue Jun 7, 2023 · 1 comment

Comments

@jagthedrummer
Copy link

jagthedrummer commented Jun 7, 2023

I'm testing NSFW in an electron app and it works fantastically in development mode. But when I generate a self-contained .app file then try to start the app I get an error thrown when I try to require nsfw.

dlopen(/var/folders/fx/vmqbtyws34j1l88m16_9jy_00000gn/T/.com.electron.seshydevelopment.3nmfAN, 0x0001):
tried: '/var/folders/fx/vmqbtyws34j1l88m16_9jy_00000gn/T/.com.electron.seshydevelopment.3nmfAN'
(code signature in <83F8673B-BEAF-3E2A-9B12-66321A99F480> '/private/var/folders/fx/vmqbtyws34j1l88m16_9jy_00000gn/T/.com.electron.seshydevelopment.3nmfAN'
not valid for use in process:
mapped file has no Team ID and is not a platform binary
(signed with custom identity or adhoc?)),

Is there something special that I have to do to build, sign, and use NSFW for distribution with my app?

@jagthedrummer
Copy link
Author

Found a change in forge.config.js that did the trick. Changed this line:

    "asar": true,

to this:

    "asar": {
      "unpack": "**/node_modules/nsfw/**/*.node",
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant