remove deploy

This commit is contained in:
2025-12-03 22:04:09 -05:00
parent 5b07263300
commit 89d6dbccd7
3 changed files with 21 additions and 93 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@@ -20,6 +20,14 @@ let mainWindow: BrowserWindow | null = null;
let tray: Tray | null = null;
function createWindow(): void {
// In dev: __dirname = dist/main, logo is at root
// In prod: __dirname = resources/app.asar/dist/main
const iconPath = process.env.NODE_ENV === 'development'
? path.join(__dirname, '../../logo.png')
: path.join(__dirname, '../assets/logo.png');
console.log('Window icon path:', iconPath);
mainWindow = new BrowserWindow({
width: 1400,
height: 900,
@@ -27,6 +35,7 @@ function createWindow(): void {
minHeight: 700,
frame: false,
backgroundColor: '#0a0e27',
icon: iconPath,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration: false,
@@ -54,10 +63,15 @@ function createWindow(): void {
}
function createTray(): void {
// Create a simple icon for the tray (16x16 cyan square)
const icon = nativeImage.createFromDataURL(
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAdgAAAHYBTnsmCAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABNSURBVDiNY/z//z8DJYCJgUIwasCoAaMGjBowaMIAhv///zNQCpiYKASjBowaMGrAqAGDJgxGDRg1YNSAUQNGDRg0YTBqwKgBowYMmjAAALmyAwVYbMsAAAAASUVORK5CYII='
);
// In dev: __dirname = dist/main, logo is at root
// In prod: __dirname = resources/app.asar/dist/main
const iconPath = process.env.NODE_ENV === 'development'
? path.join(__dirname, '../../logo.png')
: path.join(__dirname, '../assets/logo.png');
console.log('Tray icon path:', iconPath);
const icon = nativeImage.createFromPath(iconPath).resize({ width: 16, height: 16 });
tray = new Tray(icon);
@@ -97,9 +111,9 @@ app.whenReady().then(() => {
createWindow();
});
app.on('window-all-closed', (e: Event) => {
// Prevent app from quitting when window is closed (allow tray to keep it running)
e.preventDefault();
app.on('window-all-closed', () => {
// Quit the app when all windows are closed
app.quit();
});
app.on('activate', () => {