Skip to content

打包插件并发布到官方插件库

Here App Dev edited this page Jul 25, 2020 · 4 revisions

如何打包发布插件

示例插件:

文件夹:./Source/Plugin-Example/

  1. 更新 config.json 文件中的版本号。
"version": "1.0.1"
  1. 更新 appcast.xml 文件里的版本号 -> sparkle:version="1.0.1"
<?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/Empty-Trash.hereplugin" sparkle:version="1.0.1"/>
        </item>
    </channel>
</rss>
  1. 在设置面板右键导出插件
  1. 将你的插件 Plugin-Example.hereplugin 发布即可

将插件并发布到官方插件库

将插件信息添加到 all.json

https://github.com/hereappdev/Here-Plugins/blob/master/all.json

示例:

{
    "name": "App Center Analytics",
    "identifier": "app.here.appcenteranalytics",
    "description": "Show analytics from Visual Studio App Center",
    "createdBy": "Here",
    "website": "https://here.app",
    "repository": "https://github.com/hereappdev/Here-Official-Plugins/tree/master/source/App-Center-Analytics",
    "labels": ["productivity", "analytics"],
    "releases": [
        {
            "tags": false,
            "download": "https://github.com/hereappdev/Here-Official-Plugins/raw/master/downloads/App-Center-Analytics.hereplugin",
            "hereVersion": "1.0.1"
        }
    ]
},