[erlang-questions] priv dir in escript
Tristan Sloughter
t@REDACTED
Sun Jul 29 23:04:21 CEST 2018
We definitely need to add this to the docs on rebar3.org, it wasn't
documented for historical reasons but it has been stable api for
years now.
This should work if you replace the app name part with your app's name:
{escript_incl_extra, [{"<YOUR APP NAME>/priv/*,
"_build/default/lib/"}]}.It could use improvements to like replace os vars for the profile, but
it at least works
On Sun, Jul 29, 2018, at 2:51 PM, Karlo Kuna wrote:
> I'm trying to make self contained escript
> i need priv folder to be included in archive in escript
>
> currently i'm extracting files using: 'escript:extract'
> but in arhive there is no `priv` directory
>
> i'm building with rebar3 escriptize
>
> any help would be appreciated
> _________________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180729/f6568c29/attachment.htm>
More information about the erlang-questions
mailing list