项目文件夹

文件
caorushizi 9406d8c2cb
Make MediaGo Docker Image / Build Docker Image (arm64, linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Make MediaGo Docker Image / Create Multi-Arch Manifest (push) Has been cancelled
Make MediaGo Docker Image / Build Docker Image (amd64, linux/amd64, ubuntu-latest) (push) Failing after 1s
v3.1.0-beta.1
2025-11-19 00:29:40 +08:00
..
2025-11-19 00:29:40 +08:00
2025-11-02 20:56:39 +08:00
2025-11-03 11:26:05 +08:00
2025-11-19 00:21:08 +08:00
2025-11-18 18:31:46 +08:00
2025-11-18 18:31:46 +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.