Skip to content

Commit c101819

Browse files
committed
fix:electron build
1 parent 0cc4361 commit c101819

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

chat2db-client/src/main/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function loadMainResource(mainWindow) {
2121
} else {
2222
mainWindow.loadURL(
2323
url.format({
24-
pathname: path.join(__dirname, '../../..', `./versions/${readVersion()}`, `./dist/index.html`),
24+
pathname: path.join(__dirname, '../..', `./versions/${readVersion()}`, `./dist/index.html`),
2525
protocol: 'file:',
2626
slashes: true,
2727
}),

chat2db-client/src/main/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
entry: './index.js',
55
output: {
66
filename: 'main.js',
7-
path: path.resolve(__dirname, 'dist'),
7+
path: path.resolve(__dirname),
88
},
99
target: 'electron-main',
1010
};

0 commit comments

Comments
 (0)