feat: electron desktop packaging, CDN asset migration, production docs, scene JSON spec
This commit is contained in:
13
electron/main.js
Normal file
13
electron/main.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const { app, BrowserWindow } = require('electron')
|
||||
const path = require('path')
|
||||
|
||||
app.whenReady().then(() => {
|
||||
const win = new BrowserWindow({
|
||||
fullscreen: true,
|
||||
autoHideMenuBar: true,
|
||||
webPreferences: { nodeIntegration: false, contextIsolation: true }
|
||||
})
|
||||
win.loadFile(path.join(__dirname, '..', 'dist', 'index.html'))
|
||||
})
|
||||
|
||||
app.on('window-all-closed', () => app.quit())
|
||||
Reference in New Issue
Block a user