moved all html files to project root. #870.
This commit is contained in:
parent
f1ee134780
commit
cae27a2d93
|
@ -125,6 +125,6 @@
|
|||
component on your installation medium.
|
||||
</p>
|
||||
</body>
|
||||
<script src="./about.js" type="module">
|
||||
<script src="/src/renderer/static/about.js" type="module">
|
||||
</script>
|
||||
</html>
|
|
@ -29,6 +29,6 @@
|
|||
Find My Logs
|
||||
</button>
|
||||
</body>
|
||||
<script src="./report.js" type="module">
|
||||
<script src="/src/renderer/static/report.js" type="module">
|
||||
</script>
|
||||
</html>
|
|
@ -8,7 +8,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<img src="./invest-logo.png">
|
||||
<img src="/src/renderer/static/invest-logo.png">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -61,12 +61,8 @@ export const createWindow = async () => {
|
|||
frame: false,
|
||||
alwaysOnTop: false,
|
||||
});
|
||||
console.log(path.join(
|
||||
BASE_URL, 'src/renderer/static/splash.html'
|
||||
));
|
||||
splashScreen.loadURL(path.join(
|
||||
BASE_URL, 'src/renderer/static/splash.html'
|
||||
));
|
||||
splashScreen.loadURL(path.join(BASE_URL, 'splash.html'));
|
||||
|
||||
const investExe = findInvestBinaries(ELECTRON_DEV_MODE);
|
||||
createPythonFlaskProcess(investExe);
|
||||
setupDialogs();
|
||||
|
|
|
@ -128,7 +128,7 @@ function openAboutWindow(parentWindow, isDevMode) {
|
|||
});
|
||||
setupContextMenu(child);
|
||||
child.setMenu(null);
|
||||
child.loadURL(path.join(BASE_URL, 'src/renderer/static/about.html'));
|
||||
child.loadURL(path.join(BASE_URL, 'about.html'));
|
||||
if (true) {
|
||||
child.webContents.openDevTools();
|
||||
}
|
||||
|
@ -157,7 +157,7 @@ function openReportWindow(parentWindow, isDevMode) {
|
|||
});
|
||||
setupContextMenu(child);
|
||||
child.setMenu(null);
|
||||
child.loadURL(path.join(BASE_URL, 'src/renderer/static/report_a_problem.html'));
|
||||
child.loadURL(path.join(BASE_URL, 'report_a_problem.html'));
|
||||
if (isDevMode) {
|
||||
child.webContents.openDevTools();
|
||||
}
|
||||
|
|
|
@ -34,9 +34,9 @@ export default defineConfig({
|
|||
// },
|
||||
input: [
|
||||
path.resolve(PROJECT_ROOT, 'index.html'),
|
||||
path.resolve(PROJECT_ROOT, 'src/renderer/static/splash.html'),
|
||||
path.resolve(PROJECT_ROOT, 'src/renderer/static/report_a_problem.html'),
|
||||
path.resolve(PROJECT_ROOT, 'src/renderer/static/about.html'),
|
||||
path.resolve(PROJECT_ROOT, 'splash.html'),
|
||||
path.resolve(PROJECT_ROOT, 'report_a_problem.html'),
|
||||
path.resolve(PROJECT_ROOT, 'about.html'),
|
||||
],
|
||||
// external: [
|
||||
// ...builtinModules,
|
||||
|
|
Loading…
Reference in New Issue