Skip to content

Build and distribute Snappy packages #5458

Closed

Description

@Tyriar

Activity

  1. added
    feature-request
    linux
    on Apr 18, 2016
  2. added this to the Backlog milestone on Apr 21, 2016
  3. sergiusens commented on May 16, 2016

    @sergiusens

    Hello there, I have something sort of working.

    It is not on the store yet, but you can download it from http://people.canonical.com/~sergiusens/snappy/vscode_1.0_amd64.snap

    There are two snappy related bugs still open for this (which are being worked on):

    So it would need to be installed by running

    sudo snap install --devmode vscode*.snap
    

    The most important thing that I still need to resolve it plugin installation. That is an area I could use pointers for btw.

    I have 4 commits here https://github.com/sergiusens/vscode/commits/release/1.0.0

    This branch has:

    • a gulp task to create the snap layout.
    • snapcraft specific assets.
    • a launcher (shell) specific to snapcraft (this won't be necessary for future builds though).
    • a local plugin (parts/plugins/x-nodejs) until I (or someone else) adds support for either gulp as a top level plugin or clean up what I did here to also support gulp.

    sergiusens@a840a34 you might want to cherry pick regarless.

  4. added
    install-update
    on Jun 2, 2016
  5. Tyriar commented on Jun 2, 2016

    @Tyriar
    ContributorAuthor

    Hey Sergio Schvezov (@sergiusens), thanks a lot for your work on this. The snap file size is 92mb compared to 30-45 for the other package types, are snaps not compressed by default or was this just left out?

    We probably won't delve into distributing a snap until at least #1577514 is fixed. It sounds like it will be an Electron fix that will then take time for us to uplevel to.

    I only thing I can see that's preventing your commits landing in master is moving the build resources (parts, snapcraft.yaml) to resources/linux/snap and the build artifacts to .build/linux/snap. If you get around to upleveling your branch and making those changes we'd be glad to merge a PR and add it to the CI build.

  6. sergiusens commented on Jun 10, 2016

    @sergiusens

    Daniel Imms (@Tyriar) ok, sounds like a plan, I'll work on that

  7. sergiusens commented on Jun 10, 2016

    @sergiusens

    Daniel Imms (@Tyriar) about size, we need to include things in which are not part of the core os which is the common dependency for everything. This could be much smaller but isn't yet as I haven't trimmed down all of it yet.

    I'll get to the other items as soon as I look at it. I also based out of release/1.0.0 which I guess the intenton is to get this into master/devel instead?

  8. Tyriar commented on Jun 10, 2016

    @Tyriar
    ContributorAuthor

    Sergio Schvezov (@sergiusens) yeah if you update your work to work on master with the tweaks I mentioned then we can push this and I'll get notified if it breaks. It will also make it convenient for anyone who wants to use snappy packages from an OSS build.

  9. flexiondotorg commented on May 11, 2017

    @flexiondotorg
    Contributor

    Daniel Imms (@Tyriar) Microsoft Visual Studio Code is published as a snap in the store as vscode using classic confinement in the beta channel. We'd love for your team to take ownership of this snap and publish new versions directly to the store :-)

    The rationale for using classic confinement is that vscode is a code editor and users may reasonably expect to be able to edit files anywhere on the system. Use classic confinement means that LP: #1577514 is no longer relevant and neither is LP: #1577520, although the later issue is also now resolved in snapd when applications are strictly confined.

    Snaps have a number of useful characteristics such as being simple to create, support multiple Linux distributions, enable very simple installation instructions and provide access to install metrics via the Snap store. There are also various hooks and services [3] available to automate the build and publish pipeline.

  10. Tyriar commented on May 11, 2017

    @Tyriar
    ContributorAuthor

    Martin Wimpress (@flexiondotorg) thanks for reaching out again, could you email me the process for taking ownership and publishing?

  11. Ads20000 commented on May 19, 2017

    @Ads20000

    Update for those interested:
    VS Code now in the snappy store in the stable channel.
    Can't be installed from Ubuntu/GNOME Software...yet (use sudo snap install vscode --classic for now), ownership needs to be transferred and it potentially needs to be renamed code (but there's already a snap called code in the store).

  12. vannitotaro commented on May 21, 2017

    @vannitotaro

    Moreover there is no reference to Microsoft in snap detailed information. I think it should be there, to give a hint to the user that it is the right package to install.

    me@pc:~$ snap info vscode
    name:      vscode
    summary:   "Code editing. Redefined."
    publisher: flexiondotorg
    contact:   [email protected]
    description: |
      Visual Studio Code is a new choice of tool that combines the
      simplicity of a code editor with what developers need for the core
      edit-build-debug cycle.
      
    channels:                                 
      latest/stable:    1.12.2-1494422229 (8) 122MB classic
      latest/candidate: 1.12.2-1494422229 (8) 122MB classic
      latest/beta:      1.12.2-1494422229 (8) 122MB classic
      latest/edge:      1.12.2-1494422229 (8) 122MB classic
    
  13. Ads20000 commented on May 21, 2017

    @Ads20000

    Giovanni Totaro - aka Vanni (@vannitotaro) once Martin has transferred ownership to Microsoft, it will hopefully read
    publisher: microsoft

  14. 34 remaining items

  15. ghisvail commented on May 12, 2018

    @ghisvail
  16. Tyriar commented on May 13, 2018

    @Tyriar
    ContributorAuthor

    Yes that's not the one published by us, Martin Wimpress (@flexiondotorg) derives that one from the deb

  17. tomByrer commented on Jul 9, 2018

    @tomByrer

    At this time, the snap package is stuck at v1.24 while the main distos have had v1.25 for four days now. I know this is a US holiday weekend, but unfortunately my usual distro that I build VSCode manually crashes, since yarn won't build there.

  18. Ads20000 commented on Jul 12, 2018

    @Ads20000
  19. added
    snap
    on Aug 24, 2018
  20. Tyriar commented on Aug 24, 2018

    @Tyriar
    ContributorAuthor
  21. joaomoreno commented on Apr 1, 2019

    @joaomoreno
    Contributor

    This is now in master, planning to release for March.

  22. mightyiam commented on Apr 1, 2019

    @mightyiam

    Do you mean April, João Moreno (@joaomoreno)?

  23. joaomoreno commented on Apr 1, 2019

    @joaomoreno
    Contributor

    Actually, March! 🎆

    No April Fools here. 😉

  24. locked and limited conversation to collaborators on May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinstall-updatelinuxsnapverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions