Skip to content

Distribute VS Code via a signed apt repository #2973

Closed

Description

@Tyriar

This would make auto-updating possible on Debian-based OS's.

Activity

  1. Tyriar commented on Mar 17, 2016

    @Tyriar
    ContributorAuthor

    Unfortunately it doesn't look like the signing will be up in time for the release, pushing to April. /cc João Moreno (@joaomoreno)

  2. joaomoreno commented on Mar 17, 2016

    @joaomoreno
    Contributor

    Signatures are always a lengthy process...

    It's enough if we get the debs and rpms out the door.

  3. typekpb commented on Apr 15, 2016

    @typekpb

    does this one cover rpm repository as well, or should I create a new issue?

  4. Tyriar commented on Apr 22, 2016

    @Tyriar
    ContributorAuthor

    Being pushed to May.

  5. Tyriar commented on Apr 22, 2016

    @Tyriar
    ContributorAuthor

    Peter Butkovic (@typekpb) #229 is tracking the rpm/yum repo.

  6. added this to the May 2016 milestone on Apr 22, 2016
  7. 50 remaining items

  8. chase-moskal commented on Apr 13, 2017

    @chase-moskal

    Daniel Imms (@Tyriar) — vscode is prompting me to update from v0.11.1 to v0.11.2 via the website

    I tried to update with

    sudo apt-get install code
    

    It tells me

    code is already the newest version (1.11.1-1491486998).
    

    I suppose the version that apt-get has access to is out-of-date

  9. sudopluto commented on Apr 13, 2017

    @sudopluto

    @ChaseMoskal
    to upgrade from apt you have to run
    sudo apt update && sudo apt upgrade
    you are getting that error because you didnt update your sources most likely

  10. ghetolay commented on Apr 14, 2017

    @ghetolay

    @ChaseMoskal be sure you have a /etc/apt/sources.list.d/vscode.list and that the content is not commented (with a #).

    It happened to me after an Ubuntu upgrade.

  11. chase-moskal commented on Apr 15, 2017

    @chase-moskal

    Pranav Sharma (@sudopluto), Ghet (@ghetolay) — it works!

    • I closed everything I had open, and ran sudo apt update && sudo apt upgrade

    • I opened /etc/apt/sources.list.d/vscode.list and saw that its full contents was:

      deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main
      
    • After sudo apt-get install code — I have code v1.11.2-1492070517

    Thanks fellas, I appreciate it

  12. Tyriar commented on Apr 17, 2017

    @Tyriar
    ContributorAuthor

    As Ghet (@ghetolay) mentioned the repo will be disabled after an Ubuntu upgrade, I made a change this morning that works similar to Chrome that will re-enable the repo when the deb package is installed next (coming in tomorrow's Insiders) #24898. This will get auto-updating working again after you install manually after an OS upgrade.

  13. ghetolay commented on Apr 17, 2017

    @ghetolay

    Daniel Imms (@Tyriar) Nice, thks!

    Rarely seen a PR built out of a comment 👍

  14. akashnimare commented on Apr 19, 2017

    @akashnimare

    Hey Daniel Imms (@Tyriar)
    I'm working on an electron app named zulip-electron. I have already build a .deb using electron-builder. Just wanted to know how to add .deb to a PPA so that users can install/update my app via sudo apt-get myapp. Any suggestions would be really appreciated.

  15. Tyriar commented on Apr 19, 2017

    @Tyriar
    ContributorAuthor

    Akash (@akashnimare) we don't use a PPA, we use a regular apt repo and the actual implementation is handled by another team. There should be plenty of documentation on the internet for how to set up a repo.

    If you're interested here is the post install steps to install the repo when installing the package https://github.com/Microsoft/vscode/blob/bfc4e3d780ddbcf8802d9ddc61e3b440af3cae5b/resources/linux/debian/postinst.template#L20

  16. akashnimare commented on Apr 20, 2017

    @akashnimare

    So I guess I just need to setup a repo + the above post install script?

  17. Tyriar commented on Apr 20, 2017

    @Tyriar
    ContributorAuthor

    Akash (@akashnimare) the post install is optional, the minimal thing you need to do is setup a repo and provide users with steps to register it like https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions

  18. Z-Y00 commented on Oct 3, 2017

    @Z-Y00

    why not provide the "debian/* " file, in case someone may wanna pack it into Debian , this would save much trouble.

  19. Tyriar commented on Oct 3, 2017

    @Tyriar
    ContributorAuthor

    Lorri Rao (@Z-Y00) I don't understand the question? We provide the deb package via the website homepage and https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions ?

  20. Z-Y00 commented on Oct 4, 2017

    @Z-Y00

    I mean you can consider geting it into Debian's official repository, since the code is under MIT license.
    https://www.debian.org/doc/debian-policy/

  21. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityinstall-updateVS Code installation and upgrade system issueslinuxIssues with VS Code on Linux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions