-
Notifications
You must be signed in to change notification settings - Fork 10
Create You Own Custom Plugins for Here
Here App Dev edited this page Jul 25, 2020
·
15 revisions
Here App uses JavaScript for plugin development.
To get started creating a new plugin, follow the steps below.
- Navigate to the Here Plugin directory. Menu:
[Debug] > [Reveal Plugins in Finder]
- Create a new directory and name it after the plugin (e.g. Plugin-Example).
- Create new files like the tree below.
You can also use Here Plugin Generator to create unofficial plugins.
A Here plugin includes those file inside.
├── Plugin-Example // Plugin Example
├── config.json // Plugin Configurations
├── index.js // Main Script
├── appcast.xml // Checking for Updates
├── icon.png // Plugin Icon
├── menuBarIcon.png // menuBar Icon
├── LICENSE.md // License File (e.g MIT License)
└── README.md // Plugin Information (e.g. Introduction, Readme, etc.)
{
"name": "Plugin Example",
"identifier": "author.pluginexample",
"version": "1.0.0",
"description": "This is an example plugin for Here.",
"icon": "icon.png",
"createdBy": "author",
"website": "https://example.com",
"appcast": "https://plugins.herecdn.com/source/Plugin-Example/appcast.xml",
"script": "index.js",
"defaultCategory": "favs",
"displayOn": [
"mini"
]
}
here.onLoad(() => {
here.setMiniWindow({ title: "Hello World!" })
})
XML content sparkle:version="1.0.0"
should be equal to "version": "1.0.0"
from config.json.
Change the version number when you release a new version of your plugin.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"
xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<item>
<enclosure url="https://plugins.herecdn.com/downloads/Plugin-Example.hereplugin" sparkle:version="1.0.0"/>
</item>
</channel>
</rss>
Square image with size 200x200
, support alpha transparency PNG
.
Example:
Black color image with size 60x54
, support alpha transparency PNG
.
Example:
Published under the MIT License
Support Markdown: Syntax
# Plugin Name
> This is my first plugin for Here.
## How to Use
1. First..
2. Then..
3. At last..
Now, everything is here!