当我的电子项目正常运行时,就像electron ./artist-test-kit-main.js一样,一切正常。当我将项目构建到可执行文件中时,加载文件的尝试开始失败,比如:Uncaught Error: ENOENT: no such file or directory, open 'asset-editor\在index.js中(由index.html启动,由标准的electron.js启动器文件</
由于Visual Studio代码是使用Electron创建的,我猜测launch.json可能被配置为使用Electron正确启动应用程序。但我还没想好怎么做。此外,由于电子是基于io.js的,本身也是基于Node.js的,我在想也许...这是可以做到的,但还没有找到魔力。 // Type of configuration.&qu
根据终端系统将使用的内容(可以在electron和C# WebBrowserControl下运行),需要应用不同的全局变量名。<--!This should not be applied to the end product if I don't specify that --> const electron= require('electron');
const currentWindow = electron.remote