Commit Graph

256 Commits

Author SHA1 Message Date
João Moreno a82ba894c6 Snap: Remove SUID from sandbox binary (#246307)
* debug

* remove SUID

* damn it

* remove unnecessary logs
2025-04-11 15:44:37 +02:00
Pavel Prchal eecb98b9a2 Added localization to right-click on icon (#243679) 2025-03-17 18:11:00 +00:00
Robo 79d2a4c826 fix: corrupted vsce dotnet binaries in rpm package (#238636) 2025-01-24 08:27:05 +01:00
Raymond Zhao 49bf27ee9a fix: interactive postinst script breaks install for non-interactive environments (#227837) 2024-10-31 07:50:41 -07:00
Robo b62b4161a0 fix: font config detection for snap (#232713) 2024-10-31 19:27:30 +09:00
Robo 4e7b53c5a0 chore: disable mime db creation in snap (#232129) 2024-10-24 03:39:28 -07:00
Robo 2d28c0a79c fix: use the mime package from snap to generate db (#231119) 2024-10-11 16:56:43 +02:00
Robo adac839773 ci: use sysroots for stripping binaries in rpmbuild (#227397) 2024-09-03 06:01:02 +02:00
Raymond Zhao 28ba9f5e58 fix: add postinst template conditions (#225097) 2024-08-07 17:00:39 -07:00
Matthias B. cd340e6aa4 Fix: only add apt sources for users that want them (#22145) (#221285)
Signed-off-by: Matthias Breithaupt <m.breithaupt@vogl-electronic.com>
2024-08-06 14:54:05 -07:00
Robo 4b19907cc8 fix[x11]: crash in gpu process with software compositor (#216661)
* fix[x11]: crash in gpu process with software compositor

* chore: bump distro
2024-06-20 07:02:04 +02:00
Robo 3b80131054 chore: add missing gl libraries for snap (#215493)
* chore: add missing gl libraries for angle

* chore: add wayland egl library
2024-06-14 01:36:01 +02:00
Robo 6facfe23b3 fix: snap packaging for argument parsing (#214560) 2024-06-07 09:45:12 +02:00
Robo 6e6d38007e fix: force software gl backend for snap (#214548)
Refs https://github.com/microsoft/vscode/issues/212494

When using the default ANGLE gl/gles backend, v1.90 attempts
to get display refresh rate for vsync from an internal implementation
instead of using the gl extension EGL_CHROMIUM_sync_control,
this eventually ends up loading display info from XRandr and chromium
attempts to set a label for the data from the shipped resource pak
file that is not accessible to the gpu process triggering a SIGTRAP
in ui::ResourceBundle::GetSharedInstance.
2024-06-07 06:16:32 +02:00
Tony Ivanov f1c007109d Fixed #114425 prevent mime pollution on install (#209510)
This software is not a plain text editor, and it's definitely not a file manager.
Advertising compatibility with such overrides default OS handlers on many distributions, unnecessarily.
2024-04-17 20:42:51 +00:00
Raymond Zhao 0da22a2260 fix: deprecate unity-launch flag (#209471) 2024-04-04 15:18:19 -07:00
Francois Marier 3d15752604 Use HTTPS for the apt repository (#203833) 2024-01-31 10:46:26 -08:00
Robo 74ef67b4ab fix: update rpm release tag to el8 (#203770) 2024-01-30 07:09:47 +01:00
Robo fb76955440 chore: update electron@27.2.1 (#202053)
* chore: bump electron@27.2.1

* chore: enable code cache support for custom standard schemes

Refs https://github.com/electron/electron/commit/267cbc841eb97c1c768ea116352f7430968cb05d

* chore: remove --ms-enable-electron-run-as-node

Removed in favor of https://github.com/electron/electron/commit/f842ead6bc627afdf5b945305abb3e1872b558ef

* chore: update distro
2024-01-09 08:33:34 +01:00
Connor Peet 9bbc169b62 cli: a running code tunnel/serve-web subcommands as root (#200207)
Fixes #193932
2023-12-07 03:32:36 +01:00
Raymond Zhao 00a6c60eeb feat: add translations for renamed desktop action (#199241) 2023-11-28 00:34:36 +01:00
Jack Nolddor 3e7b108f16 fix: missing translation for new-empty-windows desktop action (#199129) 2023-11-27 22:08:13 +00: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
João Moreno a19614e8e2 fix build (#186470) 2023-06-28 09:29:16 +02:00
Robo 42457bdb9f fix: snap env variables leaking into terminal env (#185834)
* fix: snap env variables leaking into terminal env

* chore: add spec
2023-06-22 21:52:08 +09:00
Robo 9c8c21872a chore: disable portals for snap (#180238) 2023-04-18 18:52:06 +02:00
Robo e7155a90da fix: glib schema generation for snaps (#179089) 2023-04-04 18:27:03 +09:00
Robo b2a1932329 fix: gtk module search paths for snap (#177976) 2023-03-22 08:58:15 +01:00
Robo 502ac5b213 ci: switch to core20 for snap (#127320)
* ci: switch to core20 for snap

* chore: update rpath of crashpad handler

* chore: remove unused exports
2023-03-08 18:14:55 -08: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
Evpok dbae720630 Enable Wayland build for snaps (#156551)
Enable Wayland build
2022-07-30 03:59:55 +02:00
Raymond Zhao 8feb40b928 Generate dependencies per package build for Debian (#147335)
Fixes #13089
2022-07-19 10:43:05 -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
Martin Aeschlimann 07655f3a23 use remote cli when in remote terminal (#150372) 2022-05-25 16:21:16 +02:00
Raymond Zhao d572d6e9d1 Generate rpm dependencies (#143415)
* Commit non-py files

* Finish porting calculate and merge scripts for rpm

* Switch back to ts, add binaryDir

* Pass in app path

* Trim string before splitting

* Move files, apply PR feedback

* Add deps to exclude and crashpad handler dep

* polish
2022-03-18 13:57:25 +09:00
divinity76 84ecd33bbc Fix error log when launching as root on linux (#137125)
Fix error log when launching as root on linux.
2022-02-10 08:55:47 -08:00
Daniel Imms 27e5924ff8 Remove from Utility catagory
This was from advice from the Raspberry Pi team as it causes the application to show
up in multiple menus on some desktop managers.
2022-01-13 06:44:24 -08:00
Alexandru Dima e08e4d3fe1 Move --ms-enable-electron-run-as-node to a later location (#136786)
* Move `--ms-enable-electron-run-as-node` to a later location, which is not fatal in Electron builds that don't know it

* undo bad change
2021-11-09 15:11:12 -08:00
deepak1556 ac29daaf3b Fixes #136771: update to Electron v13.5.2 and pass --ms-enable-run-as-node together with ELECTRON_RUN_AS_NODE 2021-11-09 19:09:26 +01:00
Issam Maghni 0f7982a344 Fix mkdir arguments order (#135182)
When lauching with `env POSIXLY_CORRECT=y code [...]`, VSCode creates two directories named `-m` and `700`. This is because the order of arguments, in a POSIX strict environment, matters.
2021-10-25 14:40:32 +02:00
Tim Retout 3914b9bda5 Update desktop file cache in Debian package postinst 2021-10-11 23:19:31 +01:00
rjc e7d0b82c56 Fix Description field 2021-10-04 15:53:56 +01: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
deepak1556 7eae810d8a chore: disable sandbox on snap package
Fixes https://github.com/microsoft/vscode/issues/127081
Refs https://github.com/microsoft/vscode/issues/127140
2021-06-25 19:26:08 +09: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
Benjamin Pasero e2954beb4b Remove --no-sandbox (#122909)
* linux - remove `--no-sandbox` flag

We should not disable sandbox on Linux.
We only added this to support running on Kernel <= 3.8 where setuid sandbox is used.

* fix ci

* add some docs
2021-05-04 11:18:19 +02:00
Daniel Imms 1988caa627 Merge pull request #119160 from alexmyczko/patch-1
Improve debian control description
2021-03-30 06:56:07 -07:00
Daniel Imms a23d2d40f3 Merge pull request #117994 from GitMensch/patch-1
rpm-spec: fix the wrong claim about working on EL7
2021-03-18 06:42:43 -07:00