项目文件夹

文件
caorushizi 0c377b7cb8
Build & Push Docker Image / Build and push multi-arch image (push) Failing after 0s
chore: bump version to 3.5.0-beta.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 17:56:51 +08:00
..
2026-04-03 17:56:51 +08:00
2025-11-02 20:56:39 +08:00
2026-04-02 20:34:37 +08:00

Electron Main Process

The Electron main process that handles the desktop application lifecycle, window management, and system integration for MediaGo.

Overview

This package contains the Electron main process code that:

  • Creates and manages application windows
  • Handles system tray integration
  • Manages application menus and shortcuts
  • Provides native file system access
  • Handles auto-updates and app packaging
  • Communicates with the frontend renderer process

Key Features

  • Window Management: Creates and manages the main application window
  • System Integration: System tray, notifications, and OS-specific features
  • Security: Implements secure IPC communication with the renderer
  • Auto-Updates: Built-in update mechanism for the desktop app
  • Cross-Platform: Supports Windows, macOS, and Linux

Technologies

  • Electron: Desktop application framework
  • Node.js: Backend runtime for main process
  • IPC: Inter-process communication with frontend
  • Native APIs: File system, OS integration

Development

# Start development mode
pnpm dev

# Build electron app
pnpm build:electron

# Package for release
pnpm release

# Create beta build
pnpm beta

Architecture

The electron app loads the frontend React application in a BrowserWindow and provides native desktop functionality through Electron's main process APIs.