Skip to content

Commit beba428

Browse files
committed
App icon
1 parent a8d9aa0 commit beba428

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
ChessHue
2-
========
1+
<div align="center">
2+
<h1>ChessHue</h1>
3+
<img alt="Logo" src="img/logo.jpg" width="200" />
4+
</div>
35

46
### GUI for analysis of chess games, with automatic move grading. ###
57

68
Created to make post-game analysis as convenient as in the browser, but faster.
79

8-
![](img/app.png)
10+
![Screenshot](img/app.png)
911

1012

1113
Unique features

img/logo.jpg

215 KB
Loading

main.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true';
33

44
import path from 'path';
5+
import { fileURLToPath } from 'url';
56

67
import { app, BrowserWindow, ipcMain, Menu } from 'electron';
78
import initContextMenu from 'electron-context-menu';
89
import Store from 'electron-store';
910

1011
import { Engine } from './src/engine.js';
1112

13+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
14+
1215
const app_menu_template = [
1316
{
1417
label: 'View',
@@ -32,6 +35,7 @@ app.whenReady().then(async () => {
3235
preload: path.join(app.getAppPath(), 'preload.cjs'),
3336
sandbox: false, // https://github.com/sindresorhus/electron-store/issues/268#issuecomment-1809555869
3437
},
38+
icon: path.join(__dirname, 'img/logo.jpg'),
3539
});
3640
window.maximize();
3741

src/engine.js

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { Chess } from 'chess.js';
88

99
import { generateRepetition } from './repetition.js';
1010

11-
// https://stackoverflow.com/a/50053801
1211
const __dirname = path.dirname(fileURLToPath(import.meta.url));
1312

1413
export class Engine {

0 commit comments

Comments
 (0)