<div dir="ltr">Hi Everyone<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Feb 17, 2016 at 5:27 PM Alexander Sack <<a href="mailto:asac@canonical.com">asac@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Feb 17, 2016 at 4:58 PM, Winael <<a href="mailto:vinzjobard@ubuntu.com" target="_blank">vinzjobard@ubuntu.com</a>> wrote:<br>
> Hi everyone<br>
><br>
> On Tue, Feb 16, 2016 at 6:25 PM Winael <<a href="mailto:vinzjobard@ubuntu.com" target="_blank">vinzjobard@ubuntu.com</a>> wrote:<br>
>><br>
>> Hi Alexander,<br>
>><br>
>> Le mar. 16 févr. 2016 17:40, Alexander Sack <<a href="mailto:asac@canonical.com" target="_blank">asac@canonical.com</a>> a écrit :<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> I already made snapcraft recipe for etherpad-lite, just get:<br>
>>> <a href="https://github.com/asac/etherpad-lite/tree/snap-support" rel="noreferrer" target="_blank">https://github.com/asac/etherpad-lite/tree/snap-support</a>,<br>
>>> cd into the bin/snappy folder and run "snapcraft snap" there...<br>
>>><br>
>>> The direct link to the snapcraft.yaml is here:<br>
>>><br>
>>> <a href="https://github.com/asac/etherpad-lite/blob/snap-support/bin/snappy/snapcraft.yaml" rel="noreferrer" target="_blank">https://github.com/asac/etherpad-lite/blob/snap-support/bin/snappy/snapcraft.yaml</a><br>
><br>
><br>
> I take a look yesterday. So as I understand, you're making your<br>
> etherpad-lite snapp from a fork of etherpad ?<br>
<br>
no its not a fork .. its actually pretty much the upstrema<br>
etherpad-lite... i think there is a total of one minor patch to fix a<br>
bug in their code that prevents you from run it independent location.<br>
the rest is just reusing what they already did... The fact that i put<br>
the snapcraft.yaml inside their tree is just because i plan to get<br>
this into their upstream code base....<br></blockquote><div><br></div><div>Could be great, indeed </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I had an out of tree variant that basically did almost the same ...<br>
<a href="https://github.com/asac/etherpad-lite-snap" rel="noreferrer" target="_blank">https://github.com/asac/etherpad-lite-snap</a><br>
<br>
... that one just requires one patch to snapcraft that i didnt land<br>
because in the end i went for the in-tree variant...<br>
<br>
><br>
> Pretty interesting to study.<br>
><br>
> But as I understand; we can directly generate and build parts of snapp with<br>
> snapcraft receipe.<br>
><br>
> I take a look at what my snapcraft.yaml generate, and I see that in my stage<br>
> folder I have part of etherpad-lite built (all the nodejs things)<br>
><br>
> I tried to integrate into my stage/bin folder all I have in<br>
> parts/etherpad-lite/src/bin but no success.<br>
><br>
> Do you think that a copy plugin could be useful or something else ?<br>
><br>
> After that I think I'll have to create a modified version of bin/run.sh and<br>
> bin/installDeps.sh to overload them<br>
><br>
> What do you think ?<br>
<br>
so yes, you would need to do your own script for packaging stuff ...<br>
and your own script for unning as the upstream version is just munging<br>
install and run in one thing so you cannot separate packaging and<br>
ruinning right now in upstream codebase...<br>
<br>
But then, thats exactly what i did ... i use npm instlal to do all the<br>
install stuff... and then have my own run script.<br></blockquote><div><br></div><div>But I don't understand. When I launch snapcraft stage command, I see that snapcraft is pull the source of etherpad-lite from github, build it in parts/etherpad-lite/install folder and then copy the content of this folder to the folder stage</div><div><br></div><div>So how can I copy other folder from parts/etherpad-lite/src folder to the stage folder ? Is it possible juste with snapcraft.yaml ?</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
- Alexander<br></blockquote><div><br></div><div>Cheers</div><div>Winael </div></div></div>