forge icon indicating copy to clipboard operation
forge copied to clipboard

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

Open mlshv opened this issue 11 months ago • 1 comments

Pre-flight checklist

  • [X] I have read the contribution documentation for this project.
  • [X] I agree to follow the code of conduct that this project uses.
  • [X] 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 [email protected]: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

mlshv avatar Mar 09 '24 08:03 mlshv