[erlang-questions] priv dir in escript
Tristan Sloughter
t@REDACTED
Sun Jul 29 23:52:44 CEST 2018
Can you share your config or even the whole project?
On Sun, Jul 29, 2018, at 3:47 PM, Karlo Kuna wrote:
> hey Tristan
>
> thanks for the reply
> i have tried your proposal but had no luck
>
> i'm running rebar 3.6.1 on Erlang/OTP 21 Erts 10.0 on linux
>
> what am i missing?
>
> On Sun, Jul 29, 2018 at 11:04 PM Tristan Sloughter
> <t@REDACTED> wrote:>> __
>>
>> 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
>>
>> _______________________________________________
>> 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/ab074d39/attachment.htm>
More information about the erlang-questions
mailing list