提交 113f4b14 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix issues

上级 75e716e7
......@@ -60,15 +60,8 @@ export class ZdApp {
contextIsolation: false,
},
})
if (IS_LINUX) {
let resDir = ''
if (DEBUG) {
resDir = process.cwd()
} else {
resDir = process.resourcesPath
}
logInfo('=== resDir:', resDir);
const pth = path.join(__dirname, 'ui', 'favicon.png')
if (IS_LINUX && !DEBUG) {
const pth = path.join(__dirname, 'icon', 'favicon.png')
mainWin.setIcon(pth);
}
......
// const CopyPlugin = require("copy-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
entry: './src/main.js',
module: {
rules: require('./webpack.rules'),
},
// plugins: [
// new CopyPlugin({
// patterns: [{ from: "./icon", to: "icon" }]
// })
// ],
plugins: [
new CopyPlugin({
patterns: [{ from: "./icon", to: "icon" }]
})
],
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册