mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 16:06:23 +00:00
icon fix
This commit is contained in:
BIN
app/icon.png
Normal file
BIN
app/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
@@ -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": [
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user