Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribute VS Code via a signed apt repository #2973

Closed
Tyriar opened this issue Feb 12, 2016 · 52 comments
Closed

Distribute VS Code via a signed apt repository #2973

Tyriar opened this issue Feb 12, 2016 · 52 comments
Assignees
Labels
feature-request Request for new features or functionality install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Feb 12, 2016

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

@Tyriar Tyriar added install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux labels Feb 12, 2016
@Tyriar Tyriar self-assigned this Feb 12, 2016
@Tyriar Tyriar added this to the March 2016 milestone Feb 26, 2016
@Tyriar
Copy link
Member Author

Tyriar commented Mar 17, 2016

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

@Tyriar Tyriar modified the milestones: April 2016, March 2016 Mar 17, 2016
@joaomoreno
Copy link
Member

Signatures are always a lengthy process...

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

@typekpb
Copy link

typekpb commented Apr 15, 2016

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

@Tyriar Tyriar modified the milestones: Backlog, April 2016 Apr 21, 2016
@Tyriar
Copy link
Member Author

Tyriar commented Apr 22, 2016

Being pushed to May.

@Tyriar
Copy link
Member Author

Tyriar commented Apr 22, 2016

@typekpb #229 is tracking the rpm/yum repo.

@Tyriar
Copy link
Member Author

Tyriar commented May 23, 2016

Still waiting on signing.

@Tyriar
Copy link
Member Author

Tyriar commented Jun 7, 2016

Finally progress is being made on this, I'll be going to a meeting towards the end of the month which should give the way forward 👍

As such, it will likely come in July as the meeting occurs during the test/end game week.

@chase-moskal
Copy link

@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

@sudopluto
Copy link

@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

@ghetolay
Copy link

@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.

@chase-moskal
Copy link

@sudopluto, @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

@Tyriar
Copy link
Member Author

Tyriar commented Apr 17, 2017

As @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.

@ghetolay
Copy link

ghetolay commented Apr 17, 2017

@Tyriar Nice, thks!

Rarely seen a PR built out of a comment 👍

@akashnimare
Copy link

Hey @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.

@Tyriar
Copy link
Member Author

Tyriar commented Apr 19, 2017

@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

@akashnimare
Copy link

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

@Tyriar
Copy link
Member Author

Tyriar commented Apr 20, 2017

@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

@Z-Y00
Copy link

Z-Y00 commented Oct 3, 2017

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

@Tyriar
Copy link
Member Author

Tyriar commented Oct 3, 2017

@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 ?

@Z-Y00
Copy link

Z-Y00 commented Oct 4, 2017

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/

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux
Projects
None yet
Development

No branches or pull requests