@desktopengine/sdk
v5.0.0
Published
Make dynamic wallpapers, widgets and desktop companions for DesktopEngine: type declarations, project templates and a command line tool
Maintainers
Readme
DesktopEngine SDK
Make dynamic wallpapers, widgets and desktop companions for DesktopEngine in JavaScript or TypeScript.
Documentation: https://desktopengine.app/desktopengine-sdk/ · 简体中文
The SDK includes:
- The
desktopenginecommand line tool: create, run and debug, build, validate and pack projects, and publish them to the store templates/: project templates for wallpapers, widgets and desktop companions, plus WebGL, three.js and PixiJS versions for wallpaperstypes/desktop-engine.d.ts: type declarations of the runtime API, for completion and type checking in editorsschema/manifest.schema.json: the JSON Schema ofmanifest.json
Quick start
You need Node.js 18 or later, and a Mac with DesktopEngine installed.
npm install -g @desktopengine/sdk
desktopengine create widget ~/Projects/day-progress --id com.example.day-progress --name "Day Progress"
desktopengine dev ~/Projects/day-progressdev opens DesktopEngine and runs the mini program in it. Saving a file rebuilds and reloads it, and console.log and uncaught exceptions are printed in the terminal. When it's done, pack it and import the .zip in DesktopEngine with File › Import… to try it yourself:
desktopengine pack ~/Projects/day-progressTo share it, publish it to the DesktopEngine store (by invitation for now: ask for one at [email protected] with links to your work): sign in with your creator account, test the version with a link that installs it before review, then submit it for review.
desktopengine login
desktopengine publish ~/Projects/day-progress --test-link
desktopengine publish ~/Projects/day-progress --submit --copyright originalSee the documentation for more, and Publishing for the store's review.
Contributing
Report problems and ideas in issues. To work on the SDK itself, see CONTRIBUTING.md.
License
Apache License 2.0. The DesktopEngine app itself isn't in this repository and isn't released under this license.
