mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 00:09:30 +01:00
chore: add srt sandbox dependencies to deb and rpm (#297819)
* chore: add srt sandbox dependencies to deb and rpm * fix: move the depedency to recommends
This commit is contained in:
@@ -15,6 +15,7 @@ import packageJson from '../package.json' with { type: 'json' };
|
|||||||
import product from '../product.json' with { type: 'json' };
|
import product from '../product.json' with { type: 'json' };
|
||||||
import { getDependencies } from './linux/dependencies-generator.ts';
|
import { getDependencies } from './linux/dependencies-generator.ts';
|
||||||
import { recommendedDeps as debianRecommendedDependencies } from './linux/debian/dep-lists.ts';
|
import { recommendedDeps as debianRecommendedDependencies } from './linux/debian/dep-lists.ts';
|
||||||
|
import { recommendedDeps as rpmRecommendedDependencies } from './linux/rpm/dep-lists.ts';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as cp from 'child_process';
|
import * as cp from 'child_process';
|
||||||
import { promisify } from 'util';
|
import { promisify } from 'util';
|
||||||
@@ -202,6 +203,7 @@ function prepareRpmPackage(arch: string) {
|
|||||||
.pipe(replace('@@QUALITY@@', (product as typeof product & { quality?: string }).quality || '@@QUALITY@@'))
|
.pipe(replace('@@QUALITY@@', (product as typeof product & { quality?: string }).quality || '@@QUALITY@@'))
|
||||||
.pipe(replace('@@UPDATEURL@@', (product as typeof product & { updateUrl?: string }).updateUrl || '@@UPDATEURL@@'))
|
.pipe(replace('@@UPDATEURL@@', (product as typeof product & { updateUrl?: string }).updateUrl || '@@UPDATEURL@@'))
|
||||||
.pipe(replace('@@DEPENDENCIES@@', dependencies.join(', ')))
|
.pipe(replace('@@DEPENDENCIES@@', dependencies.join(', ')))
|
||||||
|
.pipe(replace('@@RECOMMENDS@@', rpmRecommendedDependencies.join(', ')))
|
||||||
.pipe(replace('@@STRIP@@', stripBinary))
|
.pipe(replace('@@STRIP@@', stripBinary))
|
||||||
.pipe(rename('SPECS/' + product.applicationName + '.spec'));
|
.pipe(rename('SPECS/' + product.applicationName + '.spec'));
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,9 @@ export const additionalDeps = [
|
|||||||
// Dependencies that we can only recommend
|
// Dependencies that we can only recommend
|
||||||
// for now since some of the older distros don't support them.
|
// for now since some of the older distros don't support them.
|
||||||
export const recommendedDeps = [
|
export const recommendedDeps = [
|
||||||
'libvulkan1' // Move to additionalDeps once support for Trusty and Jessie are dropped.
|
'libvulkan1', // Move to additionalDeps once support for Trusty and Jessie are dropped.
|
||||||
|
'bubblewrap', // agent command sandboxing
|
||||||
|
'socat', // agent command sandboxing
|
||||||
];
|
];
|
||||||
|
|
||||||
export const referenceGeneratedDepsByArch = {
|
export const referenceGeneratedDepsByArch = {
|
||||||
|
|||||||
@@ -13,7 +13,12 @@ export const additionalDeps = [
|
|||||||
'rpmlib(FileDigests) <= 4.6.0-1',
|
'rpmlib(FileDigests) <= 4.6.0-1',
|
||||||
'libvulkan.so.1()(64bit)',
|
'libvulkan.so.1()(64bit)',
|
||||||
'libcurl.so.4()(64bit)',
|
'libcurl.so.4()(64bit)',
|
||||||
'xdg-utils' // OS integration
|
'xdg-utils', // OS integration
|
||||||
|
];
|
||||||
|
|
||||||
|
export const recommendedDeps = [
|
||||||
|
'bubblewrap', // agent command sandboxing
|
||||||
|
'socat', // agent command sandboxing
|
||||||
];
|
];
|
||||||
|
|
||||||
export const referenceGeneratedDepsByArch = {
|
export const referenceGeneratedDepsByArch = {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ License: @@LICENSE@@
|
|||||||
URL: https://code.visualstudio.com/
|
URL: https://code.visualstudio.com/
|
||||||
Icon: @@NAME@@.xpm
|
Icon: @@NAME@@.xpm
|
||||||
Requires: @@DEPENDENCIES@@
|
Requires: @@DEPENDENCIES@@
|
||||||
|
Recommends: @@RECOMMENDS@@
|
||||||
AutoReq: 0
|
AutoReq: 0
|
||||||
|
|
||||||
%global __provides_exclude_from ^%{_datadir}/%{name}/.*\\.so.*$
|
%global __provides_exclude_from ^%{_datadir}/%{name}/.*\\.so.*$
|
||||||
|
|||||||
Reference in New Issue
Block a user