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

Create .deb package for Debian-based Linux distros #2679

Closed
Tyriar opened this issue Feb 3, 2016 · 3 comments · Fixed by #2949
Closed

Create .deb package for Debian-based Linux distros #2679

Tyriar opened this issue Feb 3, 2016 · 3 comments · Fixed by #2949
Assignees
Labels
linux Issues with VS Code on Linux verified Verification succeeded vscode-build VS Code build process issues
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Feb 3, 2016

Related (rpm): #229

@Tyriar Tyriar added vscode-build VS Code build process issues linux Issues with VS Code on Linux labels Feb 3, 2016
@Tyriar Tyriar self-assigned this Feb 3, 2016
@Tyriar Tyriar added this to the Feb 2016 milestone Feb 3, 2016
@bgse
Copy link
Contributor

bgse commented Feb 3, 2016

Few thoughts on this:

-> 'official' (aka Microsoft-Branded) packaging vs. 'community' (OSS-Build) packaging
(community is more or less effort-free as soon as someone decides a package would be nice, MS-branded is obviously cooler for those who prefer getting it directly from creator and want the neat logo)

-> best executable name?
(I prefer the Fedora COPR over the official releases simply because its executable is named 'vscode' which is cleaner in path than 'code' or 'Code')

@Tyriar
Copy link
Member Author

Tyriar commented Feb 3, 2016

@bgse I looked a little at what Atom does with regards to this in atom/atom#2956. They distribute a .deb package and have ambitions of eventually having the .deb package register a repository. This is likely the path we will take as well for auto update support.

On executable, the plan is to expose a code wrapper script which calls Code in background and redirects output away from the terminal. You will be able to create an alias or rename the code script to vscode if you want. Not sure we would change the executable name at this point, feel free to open an issue to get a wider perspective though.

@bgse
Copy link
Contributor

bgse commented Feb 4, 2016

@Tyriar Aliasing doesn't really solve the issue properly imo, renaming post-install is a fair point, but then I'd have to ask myself why I'd take the official repo over a community repo that possibly spares me of the hassle. Taking this to #2722 though as to not pollute your issue.

@Tyriar Tyriar added the verified Verification succeeded label Feb 29, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
lemanschik pushed a commit to code-oss-dev/code that referenced this issue Nov 25, 2022
Build, install and run:
gulp vscode-linux-packages
sudo dpkg -i out-linux/vscode-amd64.deb
code .

Installing the package does the following:
- Puts VSCode dir at /usr/share/code
- Puts code.sh launcher in /usr/bin
- Defines a .desktop file to properly integrate with the launcher

Fixes microsoft#2679
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
linux Issues with VS Code on Linux verified Verification succeeded vscode-build VS Code build process issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants