Skip to content

Commit 51209bb

Browse files
committed
Add Icon to rpm file
Related to microsoft#4155
1 parent ae90900 commit 51209bb

4 files changed

Lines changed: 1046 additions & 1 deletion

File tree

build/gulpfile.hygiene.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ var copyrightFilter = [
7171
'!resources/win32/bin/code.js',
7272
'!**/*.sh',
7373
'!**/*.txt',
74+
'!**/*.xpm',
7475
'!src/vs/editor/standalone-languages/swift.ts',
7576
];
7677

build/gulpfile.vscode.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@ function prepareRpmPackage(arch) {
363363
.pipe(replace('@@RELEASE@@', packageRevision))
364364
.pipe(rename('SPECS/' + product.applicationName + '.spec'));
365365

366-
var all = es.merge(code, desktop, icon, shortcut, spec);
366+
var specIcon = gulp.src('resources/linux/rpm/code.xpm', { base: '.' })
367+
.pipe(rename('SOURCES/' + product.applicationName + '.xpm'));
368+
369+
var all = es.merge(code, desktop, icon, shortcut, spec, specIcon);
367370

368371
return all.pipe(symdest(destination));
369372
}

resources/linux/rpm/code.spec.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Vendor: Microsoft Corporation
77
Packager: Visual Studio Code Team <vscode-linux@microsoft.com>
88
License: MIT
99
URL: https://code.visualstudio.com/
10+
Icon: @@NAME@@.xpm
1011
Requires: git
1112
AutoReq: 0
1213

0 commit comments

Comments
 (0)