snapcraft 2.27 has been released
XiaoGuo Liu
xiaoguo.liu at canonical.com
Tue Feb 28 23:37:29 UTC 2017
Hi Roberto,
In that case, you can just run your own script in the command in stead of
directly launching your app. In your script, just do whatever thing there.
Best regards,
XiaoGuo
On Tue, Feb 28, 2017 at 9:51 PM, Roberto Mier Escandón <
roberto.escandon at canonical.com> wrote:
> Hey guys,
>
> Couldn't we have environment property pointing also to a file script as
> in the case of scriptlets. In the case of needing to set a bunch of
> things before launching app I'd prefer having it in that way.
>
> Cheers.
>
> On 24/02/17 20:05, Kyle Fazzari wrote:
> >
> >
> > On 02/24/2017 10:49 AM, Claudio André wrote:
> >>
> >> 2017-02-17 10:49 GMT-02:00 Sergio Schvezov
> >> <sergio.schvezov at canonical.com <mailto:sergio.schvezov at canonical.com>>:
> >>
> >> Hello snapcrafters!
> >>
> >> ## Setting up environment
> >>
> >> No more wrapper scripts just to setup on environment entry, this is
> >> now tied into an app entry in `apps`. Here's a quick example:
> >>
> >> ```yaml
> >> apps:
> >> vim:
> >> command: bin/vim
> >> environment:
> >> VIMRUNTIME: $SNAP/share/vim/vim80
> >> ```
> >>
> >>
> >> Hi, I tried to append to path (see below). It is not supported.
> >>
> >> ```yaml
> >> environment:
> >> PATH: "$SNAP/usr/lib/jvm/default-java/bin:$PATH"
> >> ```
> >>
> >> I'm ok with it. But, in case this is not by design, I'm mailing you
> guys.
> >
> > I can verify this. To clarify, this builds and runs fine, but actually
> > results in the PATH including the string `$PATH` instead of expanding it.
> >
> > Can a snapd dev comment on this? Is that intended?
> >
> >
> >
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
--
XiaoGuo, Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170301/b0887d12/attachment.html>
More information about the Snapcraft
mailing list