|
@@ -1,22 +1,25 @@
|
|
|
const {app, BrowserWindow} = require('electron')
|
|
const {app, BrowserWindow} = require('electron')
|
|
|
const path = require('path')
|
|
const path = require('path')
|
|
|
const url = require('url')
|
|
const url = require('url')
|
|
|
|
|
+const ejse = require('ejs-electron')
|
|
|
|
|
|
|
|
// Keep a global reference of the window object, if you don't, the window will
|
|
// Keep a global reference of the window object, if you don't, the window will
|
|
|
// be closed automatically when the JavaScript object is garbage collected.
|
|
// be closed automatically when the JavaScript object is garbage collected.
|
|
|
let win
|
|
let win
|
|
|
|
|
|
|
|
function createWindow() {
|
|
function createWindow() {
|
|
|
- win = new BrowserWindow({ width: 925, height: 500, icon: getPlatformIcon('WesterosSealSquare')})
|
|
|
|
|
|
|
+ win = new BrowserWindow({ width: 980, height: 552, icon: getPlatformIcon('WesterosSealSquare'), frame: false})
|
|
|
|
|
|
|
|
win.loadURL(url.format({
|
|
win.loadURL(url.format({
|
|
|
- pathname: path.join(__dirname, 'app', 'index.html'),
|
|
|
|
|
|
|
+ pathname: path.join(__dirname, 'app', 'index.ejs'),
|
|
|
protocol: 'file:',
|
|
protocol: 'file:',
|
|
|
slashes: true
|
|
slashes: true
|
|
|
}))
|
|
}))
|
|
|
|
|
|
|
|
win.setMenu(null)
|
|
win.setMenu(null)
|
|
|
|
|
|
|
|
|
|
+ win.setResizable(true)
|
|
|
|
|
+
|
|
|
win.on('closed', () => {
|
|
win.on('closed', () => {
|
|
|
win = null
|
|
win = null
|
|
|
})
|
|
})
|