Home > front end >  How electron load dynamic HTML file
How electron load dynamic HTML file

Time:10-18

Everybody is good, I now use a framework of nodejs electron, wrote a program, in the process of the program is running will
Create different HTML document, electron to load these documents, when I was running Ubuntu below debugging
There is no problem, but after packaged applications running on Windows platform, there is a problem
Locate the problem did not create a file when the program is running, or to create a file, but can't find the file
I looked at it and I create an HTML file path is beneath the Ubuntu project directory/HTML/directory under
But in Windows, electron is to install path when loading an app. Under the asar directory below to find the file, so the file can't find the
Excuse me somebody in a problem, how to solve

CodePudding user response:

App. Asar is electron app last package in theory all prod files inside, you can extract the asar did look inside the file you want,
Debugging when all files are visible, but if you are using electron - builder package, I don't doubt that you can pack the HTML files,

CodePudding user response:

reference 1st floor hk3475 response:
app. Asar is electron app last package in theory all prod files inside, you can extract the asar did look inside the file you want,
Debugging when all files are visible, but if you are using electron - builder package, I don't doubt that you can pack the HTML files,


Can detailed say, if you want to pack the root directory of the main APP. Js, preload, js, and public folders, how to set up? I found these after the electron - builder package, no target folder,
  • Related