mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-23 23:21:02 +01:00
3.5 KiB
3.5 KiB
Escrcpy Developer Guide
Introduction
Escrcpy is an Electron-based graphical user interface for Scrcpy, designed to facilitate the display and control of Android devices. This comprehensive guide aims to help developers contribute to the project effectively.
Getting Started
System Requirements
- Node.js v20 or higher
- Git
Development Setup
# Clone repository
git clone https://github.com/viarotel-org/escrcpy.git
cd escrcpy
# Enable pnpm package manager
corepack enable pnpm
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Build applications
pnpm build # Auto-detect platform
pnpm build:win # Build for Windows
pnpm build:mac # Build for macOS
pnpm build:linux # Build for Linux
Technical Architecture
Core Technologies
- Electron - Cross-platform desktop application framework
- Vue.js - Frontend framework
- JavaScript - Primary programming language
- Node.js - Runtime environment
- scrcpy - Android device display and control
- adbkit - Android Debug Bridge toolkit
Project Structure
📦Escrcpy
┣ 📂.github # GitHub workflows and configurations
┣ 📂.husky # Git hooks settings
┣ 📂.vscode # VSCode editor settings
┣ 📂control # Device floating control bar
┣ 📂electron # Electron main process
┣ 📂src # Main renderer process
┃ ┣ 📂assets # Static resources
┃ ┣ 📂components # Vue components
┃ ┃ ┣ 📂Device # Device management
┃ ┃ ┣ 📂Preference # Settings interface
┃ ┃ ┗ 📂Quick # Quick access features
┃ ┣ 📂composables # Vue composition functions
┃ ┣ 📂configs # App configurations
┃ ┣ 📂dicts # Constants and enums
┃ ┣ 📂icons # Icon assets
┃ ┣ 📂locales # Internationalization
┃ ┣ 📂plugins # Vue plugins
┃ ┣ 📂store # State management
┃ ┣ 📂styles # Global styles
┃ ┗ 📂utils # Helper functions
┣ 📂public # Public assets
┣ 📂screenshots # Application screenshots
┣ 📂scripts # Build scripts
┣ 📜.eslintrc-auto-import.json # ESLint settings
┣ 📜package.json # Project metadata
┣ 📜vite.config.js # Build configuration
┗ 📜electron-builder.json # Electron packaging config
Development Guidelines
Coding Standards
- Adhere to ESLint configuration
- Implement Vue 3 Composition API practices
- Follow Angular's commit message conventions (guidelines)
- Include documentation for complex implementations
Contributing Process
- Review existing issues and pull requests
- Follow coding standards
- Implement and test changes
- Update relevant documentation
- Submit pull request to main branch
Debugging Tools
- Enable debug mode in application preferences
- Access DevTools using Ctrl+Shift+I
- Utilize console logging for development
Reference Documentation
Support and Contact
- Bug Reports: GitHub Issues
- Contact: viarotel@qq.com