Update with Logo

This commit is contained in:
2025-12-23 13:36:45 +07:00
parent f2998cfbd5
commit 8b2db9471b
5 changed files with 14 additions and 8 deletions

BIN
assets/client.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

BIN
assets/client.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -9,7 +9,9 @@ module.exports = {
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {},
config: {
icon: 'assets/client'
},
},
{
name: '@electron-forge/maker-zip',
@@ -17,7 +19,11 @@ module.exports = {
},
{
name: '@electron-forge/maker-deb',
config: {},
config: {
options: {
icon: 'assets/client.png'
}
},
},
{
name: '@electron-forge/maker-rpm',

View File

@@ -30,7 +30,7 @@ function loadConfig() {
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)
@@ -39,7 +39,7 @@ const filter = {
}
// Browser Sepcific
// Browser Specific
Menu.setApplicationMenu(null);
@@ -47,7 +47,7 @@ const createWindow = () => {
const win = new BrowserWindow({
width: 1440,
height: 900,
title: 'Client',
//title: 'Client',
//titleBarStyle: 'hidden',
//tabbingIdentifier: 'clientTabs',
webPreferences: {
@@ -57,7 +57,7 @@ const createWindow = () => {
})
//win.setMenu(null)
//win.setTitle(`Client - Version ${app.getVersion()}`);
win.setTitle(`Client ${app.getVersion()}`);
win.setTitle(`${config.app_name} ${app.getVersion()}`);
// Custom Headers

View File

@@ -1,5 +1,5 @@
{
"name": "BackOneClient",
"name": "Client",
"version": "1.2.0",
"main": "main.js",
"scripts": {
@@ -10,7 +10,7 @@
},
"author": "DBS",
"license": "MIT",
"description": "BackOne Client for Manage Controller",
"description": "Client for Manage Controller",
"devDependencies": {
"@electron-forge/cli": "^7.10.2",
"@electron-forge/maker-deb": "^7.10.2",