Command line arguments
electron-packager . --overwrite myApp --platform=darwin --arch=x64
Just trying to figure out how to send this app via email.. Gmail does not let me attach it. Thank you in advance!
You would zip up the myApp.app "app" _(it's really a folder)_ inside the myApp-darwin-x64 out directory and then attach that zip file.
Thanks @malept .. really appreciate it.
Actually @malept, do you have any experience in errors after sending a packaged electron app?
I'm getting the error: EROFS: read-only file system, mkdir '/private/var/folders/.../myApp.app/Contents/Resources/app' at Object.fs.mkdirSync
So something about sending the packaged app does not allow the mkdirSync function to run.
I'm not a macOS expert, but if I had to guess, it's one of two things:
@Bharwcb That error is because on newer version of macOS gatekeeper launches your app in a virtual read only file system area. So you can't write to __dirname or app.getPath() or anything like that. All files should be written to os.tmpdir() or you get that error 馃憤
Most helpful comment
@Bharwcb That error is because on newer version of macOS gatekeeper launches your app in a virtual read only file system area. So you can't write to
__dirnameorapp.getPath()or anything like that. All files should be written toos.tmpdir()or you get that error 馃憤