Skip to content

Commit

Permalink
Merge pull request #1078 from chat2db/refactor-electron
Browse files Browse the repository at this point in the history
fix:electron build
  • Loading branch information
shanhexi committed Jan 8, 2024
2 parents 7348f99 + c101819 commit df7ea4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chat2db-client/src/main/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function loadMainResource(mainWindow) {
} else {
mainWindow.loadURL(
url.format({
pathname: path.join(__dirname, '../../..', `./versions/${readVersion()}`, `./dist/index.html`),
pathname: path.join(__dirname, '../..', `./versions/${readVersion()}`, `./dist/index.html`),
protocol: 'file:',
slashes: true,
}),
Expand Down
2 changes: 1 addition & 1 deletion chat2db-client/src/main/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
entry: './index.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
path: path.resolve(__dirname),
},
target: 'electron-main',
};

0 comments on commit df7ea4a

Please sign in to comment.