I've tried defining the path with __dirname, process.cwd(), and various variations of going up and down directories to land back in the correct one.
Any idea what else I could be missing and/or doing wrong?!
EDIT: I'm also logging process.cwd() and __dirname right before this call and __dirname, for example, comes out to /opt/company/project/app, so a ../ brings one into the project root directoy, where a package.json most definitely is.. I see in the source code that its basically just concatenating package.json onto the path you pass into package_json_dir so I'm really not sure whats going wrong here.
So in development, the package.json info loads fine, as does the image and the rest of the
about-window
.However, in prod I always get an error that
about-window: package.json is not found in specified directory path: /opt/company/project/
When I
cd /opt/company/project/
there is most definitely apackage.json
there.Here is my
openAboutWindow
config:I've tried defining the path with
__dirname
,process.cwd()
, and various variations of going up and down directories to land back in the correct one.Any idea what else I could be missing and/or doing wrong?!
EDIT: I'm also logging
process.cwd()
and__dirname
right before this call and__dirname
, for example, comes out to/opt/company/project/app
, so a../
brings one into the project root directoy, where a package.json most definitely is.. I see in the source code that its basically just concatenatingpackage.json
onto the path you pass intopackage_json_dir
so I'm really not sure whats going wrong here.