void-packages/srcpkgs/vscode/patches/gulp.patch
2021-08-06 16:56:02 -03:00

21 lines
984 B
Diff

diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
index ad0e4717a66..d3c34a95ec9 100644
--- a/build/gulpfile.vscode.js
+++ b/build/gulpfile.vscode.js
@@ -281,7 +281,15 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
'resources/win32/code_150x150.png'
], { base: '.' }));
} else if (platform === 'linux') {
- all = es.merge(all, gulp.src('resources/linux/code.png', { base: '.' }));
+ const icon = gulp.src('resources/linux/code.png', { base: '.' });
+
+ const desktop = gulp.src('resources/linux/code.desktop', { base: '.' })
+ .pipe(replace('@@NAME_LONG@@', product.nameLong))
+ .pipe(replace('@@NAME_SHORT@@', product.nameShort))
+ .pipe(replace('@@NAME@@', product.applicationName))
+ .pipe(replace('@@ICON@@', `code-oss`));
+
+ all = es.merge(all, icon, desktop);
} else if (platform === 'darwin') {
const shortcut = gulp.src('resources/darwin/bin/code.sh')
.pipe(rename('bin/code'));