Add initial implementation of GeelectronDemo app

- Created main.js for the application logic, including tests for Electron app properties and methods.
- Added package.json to define app metadata.
- Included necessary code signature files for macOS app distribution.
- Implemented basic window management and event handling in the app.
This commit is contained in:
miles committed 2026-07-27 23:56:34 -05:00
1 parent 6392c2231c
commit e5d93b3613
40 files changed
+6440 -123

No files matched your search

+8
View File
@@ -7,6 +7,7 @@
const { EventEmitter } = require('events');
const path = require('path');
const { bridge, isNative } = require('./native-bridge');
const { app } = require('./app');
class WebContents extends EventEmitter {
constructor(id) {
@@ -205,6 +206,10 @@ class BrowserWindow extends EventEmitter {
BrowserWindow._windows.set(this.id, this);
if (typeof app._trackWindow === 'function') {
app._trackWindow();
}
if (isNative) {
bridge.createWindow(this.id, {
width: this._options.width,
@@ -284,6 +289,9 @@ class BrowserWindow extends EventEmitter {
this._isDestroyed = true;
if (isNative) bridge.destroyWindow(this.id);
BrowserWindow._windows.delete(this.id);
if (typeof app._untrackWindow === 'function') {
app._untrackWindow();
}
this.emit('closed');
}