manifest.json Configuration
In this article, we will provide a detailed explanation of all the supported fields in the manifest.json file for an Eagle plugin.
Each plugin must include a manifest.json file. This file defines the plugin's execution method and basic information such as the plugin's name, version number, and entry point for the execution code.
A complete configuration for a manifest.json file might look like this:
{
"id": "LBCZE8V6LPCKD",
"version": "1.0.0",
"platform": "all",
"arch": "all",
"name": "Windows Plugin",
"logo": "/logo.png",
"keywords": [],
"devTools": false,
"main":
{
"url": "index.html",
"width": 640,
"height": 480,
"minWidth": 640,
"minHeight": 480,
"maxWidth": 640,
"maxHeight": 480,
"alwaysOnTop": false,
"frame": true,
"fullscreenable": true,
"maximizable": true,
"minimizable": true,
"resizable": true,
"backgroundColor": "#ffffff",
"multiple": false,
"runAfterInstall": false
}
}Example of each field in the manifest.json file for a plugin:
manifest.json file for a plugin:id- Plugin IDversion- Plugin Versionplatform- Support Platformall- Support All Platformsmac- macOS onlywin- Windows OS only
arch- CPU Architecturesall- Support All Architecturesarm- only supportarmarchitecturex64- only supportx64architecture
name- Plugin Namelogo- Plugin Logo File (only supportpng,jpg,webpformat)keywords- Plugin Keywords, In addition to the plugin name, adding "keywords" can help users quickly find the plugin when searching.devTools- To open the developer debug window for your plugin, you need to specify this setting.main- Plugin main entry configurationurl- Entry Pagewidth- Window widthheight- Window heightminWidth- Window min-widthminHeight- Window min-heightmaxWidth- Window max-widthmaxHeight- Window max-heightalwaysOnTop- Whether the window is always on top of other windows, default value isfalse.frame- Default value istrue. When set tofalse, a frameless window is used. This is a special window mode that does not have an outer shell (including window border, title bar, toolbar, etc.) and only contains web page content.fullscreenable- Whether the window can enter fullscreen mode, default value istrue.maximizable- Whether the window can be maximized, default value istrue.minimizable- Whether the window can be minimized, default value istrue.resizable- Whether the window size can be adjusted, default value istrue.backgroundColor- Window background color, default value is#FFF.multiple- Whether the window can be opened multiple times, default value isfalse.runAfterInstall- Automatically opens after installation, default value isfalse.
Last updated