中文文档 | English
This is an Electron template project, using electron-easy-builder as the packaging tool and electron-easy-updater as the updater.
- Supports Windows and macOS systems.
- Update packages on macOS do not require mandatory signing.
- Automatically determines whether the update is a full update or a minimal update.
- A full update replaces the entire application.
- A minimal update only updates the
asarpackage and resource files, without downloading theElectronandNoderuntime environments.
- Simplified renderer process to improve startup speed, followed by dynamic loading of the actual content workspace.
- Comprehensive
webpackconfiguration.
First, install the required dependencies using npm i.
You can test the auto-update process by modifying the url parameter in the following file.
File src/code/electron-main/main.ts:
const updater = new AppUpdater("https://xxx.xxx/xxx/app-update.json");
- Use
npm run package-macto compile and package onmacOS. - Use
npm run package-winto compile and package onWindows.