Commit Graph

231 Commits

Author SHA1 Message Date
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
Alex Myczko
2fbe092c9c fix long description 50%
This should not be longer than 80 characters/line. The last two lines belong to /usr/share/doc/code/README.Debian

Also it should not start with "Visual Studio Code is" but rather with "This is" 
Please refer to the Debian Developer Manual.
2021-03-17 07:39:26 +01:00
XECDesign
3cca5540aa Do no install repo on Raspberry Pi OS (#118826)
* Do no install repo on Raspberry Pi OS

* 💄

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2021-03-15 08:53:13 -07:00
Rachel Macfarlane
79e2119c5e Revert "snap: set compression to lzo, #117852 (#118116)"
This reverts commit e22c2be14d.
2021-03-09 10:55:22 -08:00
soredake
e22c2be14d snap: set compression to lzo, #117852 (#118116) 2021-03-08 16:23:35 +01: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
09bc6fc64b Migrate to new deb repo (#114527)
* migrate to new deb repo

* improve deb migration
2021-01-18 14:43:24 +01:00
João Moreno
adb037b74d fixes #114137 2021-01-13 11:11:00 +01:00
João Moreno
61995eab4a fix linux deb repo pointer 2020-12-10 14:59:33 +01:00
João Moreno
4250e343e0 use proper repos for linux arm 2020-12-07 16:15:57 +01:00
João Moreno
3de0ea500a Merge branch 'joao/snap-arm' 2020-11-25 11:57:38 +01:00
Pablo Sebastian Greco
00eea33b23 More cleanup for armhfp and aarch64 rpm hardcoded dependencies (#111253)
* Adjust hardcoded rpm dependecies for aarch64 to what is minimally available in CentOS7 and CentOS8

* Cleanup some hardcoded rpm dependecies for armv7hl to what is minimally available in CentOS7 and CentOS8, may need more work

Co-authored-by: Pablo Greco <pgreco@centosproject.org>
2020-11-25 09:14:38 +01:00
Pablo Sebastian Greco
de85ef3a20 Fix hardcoded rpm dependencies for armv7hl and aarch64 (#111198)
Co-authored-by: Pablo Greco <pgreco@centosproject.org>
2020-11-24 09:59:00 +01:00
João Moreno
edf43e529a build snap packages for linux arm 2020-11-18 10:04:55 +01:00
Daniel Imms
b0baa3a2d8 Update deps to include libgbm (#107611)
Fixes #106936
2020-10-19 11:47:07 -07:00
Benjamin Pasero
3c8ed50bdb fix lint
cc @tyriar
2020-09-15 16:36:09 +02: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
João Moreno
e75b1a6dcd Merge branch 'joao/linux-arm' 2020-09-11 12:45:08 +02:00
Benjamin Pasero
37a11b4314 try to fix build (linux) 2020-09-11 09:46:20 +02:00
Daniel Imms
65b4134965 Merge pull request #95637 from luqmana/workspace-mimetype
Register mimetype for *.code-workspace
2020-09-09 05:55:27 -07:00
João Moreno
034f6fc5ba fix rpm 2020-09-08 20:57:07 +02:00
João Moreno
653a7af4aa Merge branch 'master' into master 2020-06-23 11:02:40 +02:00
João Moreno
38e500687d Update resources/linux/bin/code.sh
Co-authored-by: VoidNoire <18732253+VoidNoire@users.noreply.github.com>
2020-06-21 17:12:10 +02:00
João Moreno
1e06fc4859 Update resources/linux/bin/code.sh
Co-authored-by: VoidNoire <18732253+VoidNoire@users.noreply.github.com>
2020-06-21 17:11:57 +02:00