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.
- Node.js v20 or higher
- Git
# 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
- 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
📦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
- Adhere to ESLint configuration
- Implement Vue 3 Composition API practices
- Follow Angular's commit message conventions (guidelines)
- Include documentation for complex implementations
- Review existing issues and pull requests
- Follow coding standards
- Implement and test changes
- Update relevant documentation
- Submit pull request to main branch
- Enable debug mode in application preferences
- Access DevTools using Ctrl+Shift+I
- Utilize console logging for development
Specific area "throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')"
Overwrite the contents of .npmrc.CN
in the project to .npmrc
, then delete node_modules
and reinstall dependencies.
Alternatively, you can use electron-fix
# Run in this project directory
npx electron-fix start
- Bug Reports: GitHub Issues
- Contact: [email protected]