✨Feat: 显示系统运行环境
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
const { app, BrowserWindow } = require("electron");
|
||||
|
||||
const path = require("node:path");
|
||||
|
||||
const createWindow = () => {
|
||||
const win = new BrowserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, "preload.js"),
|
||||
},
|
||||
});
|
||||
|
||||
win.loadFile("index.html");
|
||||
|
||||
Reference in New Issue
Block a user