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

"Error /bin/sh: Not a directory" while trying to run packaged app #3527

Open
3 tasks done
mlshv opened this issue Mar 9, 2024 · 1 comment
Open
3 tasks done

"Error /bin/sh: Not a directory" while trying to run packaged app #3527

mlshv opened this issue Mar 9, 2024 · 1 comment

Comments

@mlshv
Copy link

mlshv commented Mar 9, 2024

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

7.3.0

Electron version

v29.1.1

Operating system

macOS 14.0

Last known working Electron Forge version

No response

Expected behavior

Screenshot 2024-03-09 at 11 28 08

Actual behavior

Error: /bin/sh: /Users/m/code/cycletls-app/out/make/zip/darwin/arm64/cycletls-app.app/Contents/Resources/app.asar/node_modules/cycletls/dist/index-mac-arm64: Not a directory

    at Socket.<anonymous> (/Users/m/code/artic/cycletls-app/out/make/zip/darwin/arm64/cycletls-app.app/Contents/Resources/app.asar/node_modules/cycletls/dist/index.js:89:29)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:376:12)
    at readableAddChunk (node:internal/streams/readable:349:9)
    at Readable.push (node:internal/streams/readable:286:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
Screenshot 2024-03-09 at 11 27 41

Steps to reproduce

git clone git@github.com:mlshv/cycletls-app.git
cd cycletls-app
npm install
npm run make
cd ./out/make/zip/darwin/arm64
unzip cycletls-app-darwin-arm64-1.0.0.zip
./cycletls-app.app/Contents/MacOS/cycletls-app

Additional information

No response

@SpacingBat3
Copy link

(...) app.asar/node_modules/cycletls/dist/index-mac-arm64(...)

Looks like you have a native module or binaries packed in app.asar. You might want to have that extracted in a directory, like app.asar.unpacked.

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

2 participants