Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
support icon support
Browse files Browse the repository at this point in the history
  • Loading branch information
deptno committed Apr 6, 2018
1 parent 484982c commit 54b116f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file added packages/dynamon/build/icon.icns
Binary file not shown.
Binary file added packages/dynamon/build/icon.ico
Binary file not shown.
Binary file added packages/dynamon/build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion packages/dynamon/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {app, BrowserWindow, ipcMain, Menu} from 'electron'
import {ipcHandler} from './ipc'
import {builtInDb} from './built-in-db'

const db = builtInDb()

let mainWindow
Expand Down Expand Up @@ -31,12 +32,13 @@ function createWindow() {
width : 1280,
height : 800,
title : 'Dynamon',
icon : __dirname + '/build/icon.png',
webPreferences: {
nodeIntegration: false,
preload : __dirname + '/preload.js',
},
})

mainWindow.loadURL(process.env.ELECTRON_URL || 'file://' + __dirname + '/client/index.html')
mainWindow.loadURL(process.env.ELECTRON_URL || 'file://' + __dirname + '/client/index.html')
mainWindow.on('closed', () => (mainWindow = null))
}

0 comments on commit 54b116f

Please sign in to comment.