You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue when packaging the project with Electron. The packaged application behaves differently from the development environment, and it fails to load the page.
The status of "npm start" in the development environment.
The status of the program after I have packaged it and opened it.
I noticed that in the source code under the development environment, the main process in main.js determines the developmentServer based on the current mode. When I set it to false in the development environment, the same issue occurs after packaging.
I have reviewed the official documentation of itwin and the encapsulated source code, but I couldn't find the root cause of the issue.
If you could help me identify where the issue lies or provide some documentation links related to using itwin with Electron packaging, I would greatly appreciate it. Thank you very much for your review, and I look forward to your response.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I encountered an issue when packaging the project with Electron. The packaged application behaves differently from the development environment, and it fails to load the page.
The example code for the desktop end of the itwin documentation:
https://github.com/iTwin/viewer/tree/master/packages/modules/desktop-viewer-react
My own package.json, I use electron-builder to package the application:
The status of "npm start" in the development environment.
The status of the program after I have packaged it and opened it.
I noticed that in the source code under the development environment, the main process in main.js determines the developmentServer based on the current mode. When I set it to false in the development environment, the same issue occurs after packaging.
I have reviewed the official documentation of itwin and the encapsulated source code, but I couldn't find the root cause of the issue.
If you could help me identify where the issue lies or provide some documentation links related to using itwin with Electron packaging, I would greatly appreciate it. Thank you very much for your review, and I look forward to your response.
Beta Was this translation helpful? Give feedback.
All reactions