add sample
0 parent commit a21762123f5a2cb7140b53afe1971fd0c7a286c7
yhornisse authored on 11 Aug 2021
Showing 4 changed files
View
11
app/index.html 0 → 100644
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
Hello World!
</body>
</html>
View
19
app/main.js 0 → 100644
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
 
let mainWindow = null;
app.on('ready', () => {
// mainWindowを作成(windowの大きさや、Kioskモードにするかどうかなどもここで定義できる)
mainWindow = new BrowserWindow({width: 400, height: 300});
// Electronに表示するhtmlを絶対パスで指定(相対パスだと動かない)
mainWindow.loadURL('file://' + __dirname + '/index.html');
 
// ChromiumのDevツールを開く
//mainWindow.webContents.openDevTools();
 
mainWindow.on('closed', function() {
mainWindow = null;
});
});
View
build.json 0 → 100644
View
package.json 0 → 100644