Electron Publishing and Deployment
After an Electron app is developed and packaged, it needs to be released to users. The publishing methods are mainly divided into App stores and Independent distribution, and update services and version management strategies also need to be considered.
App store publishing
Microsoft Store publishing
- Packaging requirements: When using
electron-windows-storeThe tool will.exeor.msixconvert it into a Store package - Signing: requires a Microsoft Developer account and applying for a code signing certificate
Process:
- Generate an MSIX package
- Upload in the Store Partner Center
- Fill in app information, screenshots, and category
- Submit for review
Mac App Store publishing
- Packaging requirements: must use
.pkgor.app, and enable Apple Notarization - Signing: Apple Developer account to apply for a developer certificate
Process:
- Package and sign the app
- Upload using Xcode or Transporter
- Submit app information and screenshots
- Go live after passing review
Snap Store publishing (Linux)
Packaging requirements: use Snapcraft to package the app as .snap format.
Process:
- Write
snapcraft.yamlConfigure - Package and generate
.snap - Upload to the Snapcraft Store
- Publish after passing review
Review preparation
- App icons and screenshots meet store requirements
- Submit app description, category, and privacy policy
- Ensure stability through automated or manual testing
- Avoid the app using disallowed APIs or permissions
Independent distribution
Official website download
- Place the packaged
.exe,.dmg,.AppImageon the official website for download - Can combine with a CDN to provide stable download speeds
- Can provide SHA256 or MD5 checksums to ensure file integrity
GitHub Releases
- Use GitHub Releases to upload installers for each platform
- Can combine with electron-updater to implement auto-updates
- Advantages: free, easy version management
CDN distribution
- For high-traffic apps, using a CDN is recommended
- Can provide fast cross-region downloads
- Combine with an auto-update server to implement differential updates
Building an update service
Use third-party services
-
Services provide auto-update hosting, for example:
- GitHub Releases + electron-updater
- AWS S3 + CloudFront
- Netlify / Vercel static hosting
Self-hosted update server
- Deploy a simple HTTP or HTTPS service
- Provide a JSON update description file (including version number, download address, and changelog)
- Support differential updates to reduce users' download traffic
Example latest.yml File:
version: 1.0.2
files:
- url: MyElectronApp-1.0.2.exe
sha512: "文件哈希值"
releaseDate: "2025-10-15T00:00:00Z"
Version management strategy
- Semantic versioning (SemVer):
主版本.次版本.修订号 -
Release strategy:
- Minor version: fix bugs
- Major version: add new features or UI changes
-
Auto-update strategies:
- Check for updates on startup
- Periodically poll for updates
- Manually triggered by the user
Summary
Core workflow of Electron publishing and deployment:
- App stores: strict review, signing, platform packaging requirements
- Independent distribution: official website, GitHub Releases, and CDN for downloads
- Update service: auto-updates, differential updates, version management strategies
Through reasonable release and update strategies, you can ensure users get the latest, stable, and secure app versions, while improving user experience and app maintenance efficiency.