Commit Graph

48 Commits

Author SHA1 Message Date
Robo
79d2a4c826 fix: corrupted vsce dotnet binaries in rpm package (#238636) 2025-01-24 08:27:05 +01:00
Robo
adac839773 ci: use sysroots for stripping binaries in rpmbuild (#227397) 2024-09-03 06:01:02 +02:00
Robo
74ef67b4ab fix: update rpm release tag to el8 (#203770) 2024-01-30 07:09:47 +01:00
Raymond Zhao
4aaab19f69 Add update-desktop-database calls (#194645)
* Add update-desktop-database calls

* Fix symbol
2023-10-05 17:52:25 +09:00
Raymond Zhao
7eb6452066 Add appdata.xml to rpm template (#172976)
Fixes #141092
2023-02-02 01:54:43 -08:00
Frank Dana
357d14621c RPM packaging: Use standard macros (#153247)
* RPM spec: Use standard macros for paths/name

- Once `@@NAME@@` is replaced into the spec file as the `Name:`,
  it can be referenced with the RPM macro `%{name}`
- The installation directories corresponding to `/usr/bin/` and
  `/usr/share/` are defined in the RPM macros `%{_bindir}` and
  `%{_datadir}`

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
Co-authored-by: Robo <hop2deep@gmail.com>
2022-08-03 16:16:33 -07:00
Frank Dana
9c3b0bb9b4 RPM: Make /usr/bin/code owned by package (#142907)
Create the `/usr/bin/code` symlink during %install
so that the package owns and manages it.
Also, make it relative (for better relocatability).

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2022-07-06 00:13:06 +00:00
Raymond Zhao
b1f1f98370 Add provides exclude for library files (#151043)
Fixes #150934
2022-06-14 11:23:53 -07:00
Robo
4fee848f2f fix: CXXABI requirements for older distros (#129360)
* fix: use clang and libcxx from chromium

* chore: add flags for Link-Time Optimization

libcxx builds from upstream are built with LTO, avoiding these
flags will cause miscompiles

* chore: add lto flags to compilation units
2021-08-06 08:48:45 -07:00
Robo
92999c339e fix: setuid helper permission (#126798)
* ci: fix setuid helper binary permission

* ci: allow privilege for CLONE_NEWPID | CLONE_NEWNET

* ci: fix chrome-sandbox permission with rpm

* ci: fix permissions on snap

* ci: download electron earlier for arm builds
2021-06-22 08:42:30 -07:00
Simon Sobisch
08ceea18aa rpm-spec: fix the wrong claim about working on EL7
fixes #115784
2021-03-02 21:27:12 +01:00
David Bailey
1da95321b1 RPM: Don't generate build_id links (#116105)
* Don't generate build_id links

* add comment explaining change
2021-02-08 16:07:55 +01:00
João Moreno
bc38b0accb argh 2020-09-11 13:55:29 +02:00
João Moreno
bea7a2334e fix linux build 2020-09-11 13:13:08 +02:00
Benjamin Pasero
37a11b4314 try to fix build (linux) 2020-09-11 09:46:20 +02:00
Luqman Aden
828389d890 Register mimetype for *.code-workspace 2020-04-19 04:57:06 -07:00
Joao Moreno
a4e350f76f Merge commit 'refs/pull/66181/head' of github.com:microsoft/vscode into pr/66181 2019-08-07 11:56:18 +02:00
Daniel Imms
bd377076bc Fix icon name in rpm spec 2019-03-18 07:14:02 -07:00
Segev Finer
a0a5c9cbee Bundle/Install completions with the correct appname
Fixes #66154
2019-01-08 00:40:15 +02:00
Joao Moreno
493ad1da77 temporary comment out completions 2019-01-07 17:21:02 +01:00
Segev Finer
c0895eb214 Merge remote-tracking branch 'upstream/master' into shell-completions 2018-09-22 19:48:51 +03:00
Segev Finer
8f83890068 Add URL handler support for Linux desktops
Fixes #48528
2018-08-18 04:56:34 +03:00
Segev Finer
ccceaa2f52 Automatically install Bash and Zsh completions in deb/rpm 2018-08-17 14:21:23 +03:00
Daniel Imms
b69e40dd8a Use license in product.json for rpm
Fixes #17133
2016-12-13 21:10:29 -08:00
Daniel Imms
9f4d4978e1 Improve rpm dependencies
Fixes #17142
2016-12-13 19:58:38 -08:00
Daniel Imms
4953d56537 Depend on 64-bit gconf-2 for 64-bit package 2016-12-13 18:33:16 -08:00
Daniel Imms
d9f50bdfce Merge pull request #16016 from xadhoom/GConf2
Add GConf2 dependency in rpm spec template
2016-12-13 18:24:33 -08:00
Daniel Imms
42a2fb715d Indicate multiple licenses in rpm package
Fixes #15993
2016-11-26 06:29:38 -08:00
Matteo
42b9343a1f Add GConf2 dependency in rpm spec template 2016-11-24 12:02:57 +01:00
Munir Mastalic
a2bffda57b add conditional to rpm spec to test for arch, fixes 13616
libXss.so.1 was recently introduced as a dependency for correct rpm installation of vscode.

libXss.so.1 is a requirement for runtime.

this conditional check will help  tooling such as yum/dnf/rpm etc ensure the proper dependency is in place at installation time and help avoid bringing in i386 dependency libraries for x86_64 architectures.

i386
libXss.so.1

x86_64
libXss.so.1()(64bit)
2016-10-30 15:17:50 -06:00
Daniel Imms
7492ba5fb9 Use %{_bindir} to install bin command in rpm
Fixes #11431
2016-10-22 19:30:40 -07:00
Daniel Imms
aa6346e779 Have rpm depend on libXss.so.1, not named package
Fixes #13544
2016-10-12 09:44:26 -07:00
Daniel Imms
738fa36055 Add libXScrnSaver as dep to .rpm spec
Fixes #13439
2016-10-10 11:10:09 -07:00
Daniel Imms
93e65224d7 Add linux setup link to packages
Fixes #6559
2016-06-16 11:41:18 -07:00
Andrew Stitcher
57a6d9568d Fix removal of /usr/bin link when upgrading package 2016-06-07 15:54:15 -04:00
Daniel Imms
88dda0daac Remove git dependency from Linux packages
It's only a soft dependency so don't block an install on it.

Fixes #6692
2016-06-02 18:35:16 -07:00
Daniel Imms
05a6bbb31f Add el7 to rpm name to indicate RHEL7+ support
Fixes #6546
2016-05-31 19:25:46 -07:00
Daniel Imms
399a12f3e3 Add glibc v2.15 requirement to rpm
Fixes #6545
2016-05-19 12:35:51 -07:00
Daniel Imms
0b37d2acb9 Have rpm remove bin symlink in post uninstall step
Related #6338
2016-05-13 15:14:28 -07:00
Daniel Imms
179fd83998 Use sudo to add bin symlink in rpm
Fixes #6338
2016-05-13 15:12:17 -07:00
Daniel Imms
cd12a7e389 Include the Linux bin command in the main dir
This also changes the behavior of the bin command to find cli.js relatively,
meaning the CLI now supports non-standard install locations.
2016-04-05 14:51:03 -07:00
Daniel Imms
6e113d01f0 Move bin command to /usr/share/<app>/bin
/usr/bin/<app> now symlinks to the launcher. This makes the CLI
accessible in the zip archive version.

Fixes #4426
2016-04-04 16:25:12 -07:00
Daniel Imms
e4d6038750 Use update url variable for yum repo 2016-04-01 12:32:27 -07:00
Daniel Imms
d23ce88450 Add yum repository registration
This is currently disabled until the repo is signed

Part of #229
2016-04-01 12:29:59 -07:00
Daniel Imms
51209bba91 Add Icon to rpm file
Related to #4155
2016-03-24 14:01:51 -07:00
Daniel Imms
e0c7d51ffa Remove legacy bin command as rpm post install step
Fixes #4442
2016-03-23 15:31:06 -07:00
Daniel Imms
01be0ac7fe Add Group, Vendor and Packager metadata to rpm spec 2016-03-09 19:53:06 -08:00
Daniel Imms
3ddbbe9a95 Implement .rpm package gulp task
.rpm packages can now be build with:

    gulp vscode-linux-<arch>-build-rpm

The resulting package will be output to ~/rpmbuild/RPMS/<arch>/ and can be
installed on a Red Hat-based distro with:

    yum localinstall <path>

Note that Debian systems can build the package after installing the 'rpm'
package:

    apt-get install rpm

This was tested building 64-bit on Ubuntu 15.10 and installing on CentOS 7.

Fixes #3595
2016-03-07 12:36:26 -08:00