erlware / relx

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

overlays copy directory recursive #489

Closed goofansu closed 8 years ago

goofansu commented 8 years ago

folder structure:

cr
  apps
     crgame-0.1.0
     crlib-0.1.0

I want to copy apps/crgame/priv when release.

rebar.config:

{overlay, [{copy, "apps/crgame/priv", "priv"}]}

Run rebar3 as prod release twice, I found the structure below:

cr
  _build
    prod
      rel
        cr
          priv
            priv

The second run will copy the priv directory into the first run's priv directory.