first commit
This commit is contained in:
1 parent
18d31d5dcf
commit
77a5f5248c
31 files changed
+6637
-30
No files matched your search
+10
-1
@@ -4,6 +4,7 @@ import { fileURLToPath } from 'node:url'
|
||||
import path from 'node:path'
|
||||
import os from 'node:os'
|
||||
import { update } from './update'
|
||||
import './reservation-register'
|
||||
|
||||
const require = createRequire(import.meta.url)
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
@@ -45,7 +46,13 @@ const indexHtml = path.join(RENDERER_DIST, 'index.html')
|
||||
|
||||
async function createWindow() {
|
||||
win = new BrowserWindow({
|
||||
title: 'Main window',
|
||||
title: 'ESCAPE / RESERVE',
|
||||
width: 1280,
|
||||
height: 860,
|
||||
minWidth: 960,
|
||||
minHeight: 720,
|
||||
backgroundColor: '#090909',
|
||||
show: false,
|
||||
icon: path.join(process.env.VITE_PUBLIC, 'favicon.ico'),
|
||||
webPreferences: {
|
||||
preload,
|
||||
@@ -66,6 +73,8 @@ async function createWindow() {
|
||||
win.loadFile(indexHtml)
|
||||
}
|
||||
|
||||
win.once('ready-to-show', () => win?.show())
|
||||
|
||||
// Test actively push message to the Electron-Renderer
|
||||
win.webContents.on('did-finish-load', () => {
|
||||
win?.webContents.send('main-process-message', new Date().toLocaleString())
|
||||
|
||||
Reference in new issue
Block a user