Bez popisu

Zaiming (Stone) Shi 7b4b0f3d07 Merge pull request #2 from emqx/use-name-vsn-for-lib-dir před 4 roky
.github 098390a0d4 build: add github action workflow před 4 roky
src 1ea137d351 feat: add metadata_vsn to descriptive JSON file před 4 roky
.gitignore 8d7ce86e3b Initial commit před 4 roky
LICENSE 8d7ce86e3b Initial commit před 4 roky
README.md bed80ce65d docs: update readme před 4 roky
rebar.config 038bdbae72 docs: add more info to README před 4 roky

README.md

emqx_plugrel

A rebar plugin to help create EMQ X plugin release package (.tar.gz)

Build

$ rebar3 compile

Use

Add the plugin to your rebar.config:

%% Make use of this plugin
{plugins, [
    {emqx_plugrel, {git, "https://github.com/emqx/emqx_plugrel.git", {tag, "0.1.0"}}}
]}.

%% Add relx config to build a release for this plugin to work on
%% Version "0.1.0" in this example is the release version
%% which is different from the application version (vsn in .app file)
{relx, [ {release, {emqx_plugin_template, "0.1.0"}, 
            [ emqx_plugin_template %% list the applications to be released
            , map_sets
            ]}
       , {include_erts, false} % no need to include erts
       ]}.

%% Additional information to describe more details about the plugin.
%% This part will be generated to a JSON file in the release package.
{emqx_plugrel,
    [ {authors, ["EMQ X Team"]}
    , {builder,
        [ {name, "EMQ X Team"}
        , {contact, "emqx-support@emqx.io"}
        , {website, "www.emqx.com"}
        ]}
    , {repo, "https://github.com/emqx/emqx-plugin-template"}
    , {functionality, ["Demo"]}
    , {compatibility,
        [ {emqx, "~> 5.0"}
        ]}
    , {description, "This is a demo plugin"}
    ]
}.

Execute command:

rebar3 emqx_plugrel tar