Quick Start
Create a plugin from the template, run checks, package it, and test it in DesKit.
Quick Start
Start from the official template. It already includes a manifest, SDK types, build scripts, packaging scripts, and a GitHub Release workflow.
git clone https://github.com/WiIIiamWei/deskit-plugin-template.git my-deskit-plugin
cd my-deskit-plugin
npm install
npm run checknpm run check usually runs:
- TypeScript type checking;
- building
dist/index.js; - validating
deskit.json; - the plugin's own smoke test.
Update plugin identity
For a new plugin, update at least these fields:
{
"id": "com.example.my-plugin",
"name": "my-plugin",
"displayName": {
"en": "My Plugin",
"zh-CN": "我的插件"
},
"version": "0.1.0",
"main": "dist/index.js"
}Keep id stable after release. If you change it, DesKit will treat the package as a different plugin.
Package locally
npm run packThe packaged .deskit archive is written to release/. You can install it from DesKit's plugin page to verify installation, permission prompts, icons, and command rendering.
Development loop
A practical loop looks like this:
- Edit
src/index.tsanddeskit.json. - Run
npm run check. - Run
npm run pack. - Install the new
.deskitfrom DesKit's plugin page. - Search for the command in the launcher and test the interaction.
If your plugin needs the Marketplace install path, publish a GitHub Release first and then update the Marketplace listing. During local development, you do not need to touch Marketplace on every iteration.