Update with Logo
This commit is contained in:
BIN
assets/client.ico
Normal file
BIN
assets/client.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 264 KiB |
BIN
assets/client.png
Normal file
BIN
assets/client.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
@@ -9,7 +9,9 @@ module.exports = {
|
|||||||
makers: [
|
makers: [
|
||||||
{
|
{
|
||||||
name: '@electron-forge/maker-squirrel',
|
name: '@electron-forge/maker-squirrel',
|
||||||
config: {},
|
config: {
|
||||||
|
icon: 'assets/client'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '@electron-forge/maker-zip',
|
name: '@electron-forge/maker-zip',
|
||||||
@@ -17,7 +19,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '@electron-forge/maker-deb',
|
name: '@electron-forge/maker-deb',
|
||||||
config: {},
|
config: {
|
||||||
|
options: {
|
||||||
|
icon: 'assets/client.png'
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '@electron-forge/maker-rpm',
|
name: '@electron-forge/maker-rpm',
|
||||||
|
|||||||
8
main.js
8
main.js
@@ -30,7 +30,7 @@ function loadConfig() {
|
|||||||
return null; // Return null or default config if the file doesn't exist
|
return null; // Return null or default config if the file doesn't exist
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = loadConfig() || { url_address: 'https://nexus.manage.backone.cloud/login/', url_filter: 'https://*.manage.backone.cloud/*' };
|
const config = loadConfig() || { url_address: 'https://nexus.manage.backone.cloud/login/', url_filter: 'https://*.manage.backone.cloud/*', app_name: 'Client' };
|
||||||
|
|
||||||
//console.log(config.url_address)
|
//console.log(config.url_address)
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ const filter = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Browser Sepcific
|
// Browser Specific
|
||||||
|
|
||||||
Menu.setApplicationMenu(null);
|
Menu.setApplicationMenu(null);
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ const createWindow = () => {
|
|||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
width: 1440,
|
width: 1440,
|
||||||
height: 900,
|
height: 900,
|
||||||
title: 'Client',
|
//title: 'Client',
|
||||||
//titleBarStyle: 'hidden',
|
//titleBarStyle: 'hidden',
|
||||||
//tabbingIdentifier: 'clientTabs',
|
//tabbingIdentifier: 'clientTabs',
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
@@ -57,7 +57,7 @@ const createWindow = () => {
|
|||||||
})
|
})
|
||||||
//win.setMenu(null)
|
//win.setMenu(null)
|
||||||
//win.setTitle(`Client - Version ${app.getVersion()}`);
|
//win.setTitle(`Client - Version ${app.getVersion()}`);
|
||||||
win.setTitle(`Client ${app.getVersion()}`);
|
win.setTitle(`${config.app_name} ${app.getVersion()}`);
|
||||||
|
|
||||||
|
|
||||||
// Custom Headers
|
// Custom Headers
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "BackOneClient",
|
"name": "Client",
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"author": "DBS",
|
"author": "DBS",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "BackOne Client for Manage Controller",
|
"description": "Client for Manage Controller",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@electron-forge/cli": "^7.10.2",
|
"@electron-forge/cli": "^7.10.2",
|
||||||
"@electron-forge/maker-deb": "^7.10.2",
|
"@electron-forge/maker-deb": "^7.10.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user