This commit is contained in:
Jan Prochazka
2020-05-18 20:23:53 +02:00
parent e8dae5be63
commit 92236c0d64
3 changed files with 7 additions and 7 deletions

BIN
app/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -10,12 +10,14 @@
"build": { "build": {
"appId": "org.dbgate", "appId": "org.dbgate",
"mac": { "mac": {
"category": "database" "category": "database",
"icon": "icon.png"
}, },
"linux": { "linux": {
"target": [ "target": [
"AppImage" "AppImage"
] ],
"icon": "icon.png"
}, },
"win": { "win": {
"target": [ "target": [

View File

@@ -1,4 +1,5 @@
const electron = require('electron'); const electron = require('electron');
const os = require('os');
const { Menu } = require('electron'); const { Menu } = require('electron');
const { fork } = require('child_process'); const { fork } = require('child_process');
var { autoUpdater } = require('electron-updater'); var { autoUpdater } = require('electron-updater');
@@ -47,10 +48,7 @@ function buildMenu() {
}, },
{ {
label: 'Edit', label: 'Edit',
submenu: [ submenu: [{ role: 'copy' }, { role: 'paste' }],
{ role: 'copy' },
{ role: 'paste' },
],
}, },
{ {
label: 'View', label: 'View',
@@ -114,7 +112,7 @@ function createWindow() {
width: 1200, width: 1200,
height: 800, height: 800,
title: 'DbGate', title: 'DbGate',
icon: 'icon.ico', icon: os.platform() == 'win32' ? 'icon.ico' : 'icon.png',
...bounds, ...bounds,
show: false, show: false,
webPreferences: { webPreferences: {