mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Change icon name on Linux for icon theme compatibility
This change is made under the assumption that the '-oss' part is removed for final official distribution builds. The issue it resolves can be read about here: https://github.com/numixproject/numix-core/issues/2964
This commit is contained in:
parent
340133accd
commit
b8097b88aa
|
@ -38,7 +38,7 @@ function prepareDebPackage(arch) {
|
|||
.pipe(replace('@@NAME_LONG@@', product.nameLong))
|
||||
.pipe(replace('@@NAME_SHORT@@', product.nameShort))
|
||||
.pipe(replace('@@NAME@@', product.applicationName))
|
||||
.pipe(replace('@@ICON@@', product.applicationName))
|
||||
.pipe(replace('@@ICON@@', product.iconName))
|
||||
.pipe(replace('@@URLPROTOCOL@@', product.urlProtocol));
|
||||
|
||||
const appdata = gulp.src('resources/linux/code.appdata.xml', { base: '.' })
|
||||
|
@ -122,7 +122,7 @@ function prepareRpmPackage(arch) {
|
|||
.pipe(replace('@@NAME_LONG@@', product.nameLong))
|
||||
.pipe(replace('@@NAME_SHORT@@', product.nameShort))
|
||||
.pipe(replace('@@NAME@@', product.applicationName))
|
||||
.pipe(replace('@@ICON@@', product.applicationName))
|
||||
.pipe(replace('@@ICON@@', product.iconName))
|
||||
.pipe(replace('@@URLPROTOCOL@@', product.urlProtocol));
|
||||
|
||||
const appdata = gulp.src('resources/linux/code.appdata.xml', { base: '.' })
|
||||
|
@ -185,7 +185,7 @@ function prepareSnapPackage(arch) {
|
|||
.pipe(replace('@@NAME_LONG@@', product.nameLong))
|
||||
.pipe(replace('@@NAME_SHORT@@', product.nameShort))
|
||||
.pipe(replace('@@NAME@@', product.applicationName))
|
||||
.pipe(replace('@@ICON@@', `/usr/share/pixmaps/${product.applicationName}.png`))
|
||||
.pipe(replace('@@ICON@@', `/usr/share/pixmaps/${product.iconName}.png`))
|
||||
.pipe(rename(`usr/share/applications/${product.applicationName}.desktop`));
|
||||
|
||||
const icon = gulp.src('resources/linux/code.png', { base: '.' })
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"nameShort": "Code - OSS",
|
||||
"nameLong": "Code - OSS",
|
||||
"applicationName": "code-oss",
|
||||
"iconName": "vscode-oss",
|
||||
"dataFolderName": ".vscode-oss",
|
||||
"win32MutexName": "vscodeoss",
|
||||
"licenseName": "MIT",
|
||||
|
|
Loading…
Reference in a new issue