解决Electron app在部分windows7上运行黑屏或者不显示的问题
This commit is contained in:
@ -332,7 +332,7 @@
|
|||||||
}
|
}
|
||||||
//获取当前文件的绝对路径
|
//获取当前文件的绝对路径
|
||||||
ws.create(desktop + dpth.sep + lnkname + ".lnk", {
|
ws.create(desktop + dpth.sep + lnkname + ".lnk", {
|
||||||
args: targetUrl + "--" + cacheDir,
|
args: targetUrl + "--" + cacheDir + " --disable-gpu", //解决Electron app在部分windows7上运行黑屏或者不显示的问题
|
||||||
//打包时修改exe文件路径
|
//打包时修改exe文件路径
|
||||||
target: decodeURIComponent(thisurl) + dpth.sep+"钜星科技便民问诊系统.exe",
|
target: decodeURIComponent(thisurl) + dpth.sep+"钜星科技便民问诊系统.exe",
|
||||||
runStyle: ws.MIN,
|
runStyle: ws.MIN,
|
||||||
@ -408,4 +408,4 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user