Developer Mode
OTools provides a built-in developer center that covers the full workflow from plugin creation to release.
1. Create & Bind
- Create a plugin in the developer center and fill in Pack ID, name, summary, etc.
- Bind the plugin development directory; OTools reads
plugin.jsonand manages runtime info. - Enable debugging to surface the plugin in the home Tabs for quick access.
2. devUrl Debugging
devUrlsupportshttp/https, compatible with Vite, Webpack, and other dev servers.- Local
index.htmlpaths are also supported for static or non-framework plugins.
3. Web/Vue Scaffolding
The developer tool can generate a Vue + Vite project scaffold with one click:
package.json,vite.config.ts,tsconfig.jsonsrc/main.ts/src/App.vue- The bound directory is used as the project root
4. Native Capability
OTools supports Rust dynamic libraries for higher performance.
- Initialize native project: creates
native/Rust project under the bound directory. - Build native library: generates dynamic libs under
lib/. - Standalone build: build platform-specific libs on another system.
plugin.json configuration:
json
{
"native": {
"enabled": true,
"libDir": "lib",
"autoReload": true,
"libName": "macOS.dylib"
}
}Default library names:
- macOS:
macOS.dylib - Windows:
Windows.dll - Linux:
Linux.so
5. Packaging & Release
- Packaging requires
logo.pngandplugin.jsonat the plugin root. - After packaging, a plugin package is generated and written to the local marketplace record.
- Releases require a download URL (only
http/https).
6. Recommended Workflow
- Create and bind a plugin
- Initialize Web/Vue project or use pure HTML
- Set
devUrland enable debugging - Add
nativecapability for performance needs - Package and publish to the marketplace