erlware / relx

Sane, simple release creation for Erlang
http://erlware.github.io/relx
Apache License 2.0
697 stars 232 forks source link

Have installer/deinstaller #666

Closed pouriya closed 6 years ago

pouriya commented 6 years ago

Hi. Do we have an installer/deinstaller for erlang releases? Or can we have?

tsloughter commented 6 years ago

Do you mean something like edeliver? Right now there is only what OTP provides from release_handler that lets you install releases, tho it isn't very useful unless until you already have an initial release installed.

pouriya commented 6 years ago

Actually I want something for install/deinstall release on same OS.
Rebar3 compiles the code, Relx wraps a release. Is there a lib/rebar3-plugin for installing/deinstalling release? Can we implement this part in relx? For example a new config key in relx.config with simple rules for copying config files in /usr/local/etc/, release in /usr/local/lib/ and link executable codes in /usr/local/bin/ etc. And the same for deinstall which removes files.

tsloughter commented 6 years ago

I don't think that goes in relx. It sounds like a project similar to edeliver (they may work with any release, in which case they work with Erlang).

relx should stick to building releases and anything beyond creation be a new tool I think.

pouriya commented 6 years ago

Thank you.