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

About window not opening after pack #35

Open
sgermain06 opened this issue Mar 18, 2019 · 4 comments
Open

About window not opening after pack #35

sgermain06 opened this issue Mar 18, 2019 · 4 comments

Comments

@sgermain06
Copy link

I don't know if anyone else has this issue, but I built an app that lives in the system tray, that has no frame, no menu or anything. Using IPC, I'm able to open the about window by sending a message from the renderer to the main process, but when I pack up the app to distribute it, it won't open.

I tried opening the window from the renderer process, but I can't get the logo to show up or read the package.json for the version of everything.

@talhaHavadar
Copy link

Do you use any error log mechanism for production mode? If you do, it is possible that the error can be seen from that log file.

@rhysd
Copy link
Owner

rhysd commented Jul 10, 2019

I'm not sure because I'm not using bundler for Electron app usually. But I guess __dirname does not work when packing the source.

It is used at default value of base_path.

https://github.com/rhysd/electron-about-window/blob/master/src/index.ts#L114

Can you try to set proper base path following your app's directory structure?

@sgermain06
Copy link
Author

Let me try, will let you know.

@pyphilia
Copy link

I indeed set the base_path attribute and it now opens.

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

4 participants