link https://gitee.com/openkylin/kylin-code/issues/I81DBP 修复系统右键菜单打开方式中kylin-code没有图标.
|
@ -59,6 +59,23 @@ function prepareDebPackage(arch) {
|
||||||
|
|
||||||
const icon = gulp.src('resources/linux/code.png', { base: '.' })
|
const icon = gulp.src('resources/linux/code.png', { base: '.' })
|
||||||
.pipe(rename('usr/share/pixmaps/' + product.linuxIconName + '.png'));
|
.pipe(rename('usr/share/pixmaps/' + product.linuxIconName + '.png'));
|
||||||
|
const icon256 = gulp.src('resources/linux/icons/code256.png', { base: '.' })
|
||||||
|
.pipe(rename('usr/share/icons/hicolor/256x256/apps/' + product.linuxIconName + '.png'));
|
||||||
|
const icon128 = gulp.src('resources/linux/icons/code128.png', { base: '.' })
|
||||||
|
.pipe(rename('usr/share/icons/hicolor/128x128/apps/' + product.linuxIconName + '.png'));
|
||||||
|
const icon64 = gulp.src('resources/linux/icons/code64.png', { base: '.' })
|
||||||
|
.pipe(rename('usr/share/icons/hicolor/64x64/apps/' + product.linuxIconName + '.png'));
|
||||||
|
const icon48 = gulp.src('resources/linux/icons/code48.png', { base: '.' })
|
||||||
|
.pipe(rename('usr/share/icons/hicolor/48x48/apps/' + product.linuxIconName + '.png'));
|
||||||
|
const icon32 = gulp.src('resources/linux/icons/code32.png', { base: '.' })
|
||||||
|
.pipe(rename('usr/share/icons/hicolor/32x32/apps/' + product.linuxIconName + '.png'));
|
||||||
|
const icon24 = gulp.src('resources/linux/icons/code24.png', { base: '.' })
|
||||||
|
.pipe(rename('usr/share/icons/hicolor/24x24/apps/' + product.linuxIconName + '.png'));
|
||||||
|
const icon22 = gulp.src('resources/linux/icons/code22.png', { base: '.' })
|
||||||
|
.pipe(rename('usr/share/icons/hicolor/22x22/apps/' + product.linuxIconName + '.png'));
|
||||||
|
const icon16 = gulp.src('resources/linux/icons/code24.png', { base: '.' })
|
||||||
|
.pipe(rename('usr/share/icons/hicolor/16x16/apps/' + product.linuxIconName + '.png'));
|
||||||
|
|
||||||
|
|
||||||
const bash_completion = gulp.src('resources/completions/bash/code')
|
const bash_completion = gulp.src('resources/completions/bash/code')
|
||||||
.pipe(replace('@@APPNAME@@', product.applicationName))
|
.pipe(replace('@@APPNAME@@', product.applicationName))
|
||||||
|
@ -99,7 +116,7 @@ function prepareDebPackage(arch) {
|
||||||
.pipe(replace('@@NAME@@', product.applicationName))
|
.pipe(replace('@@NAME@@', product.applicationName))
|
||||||
.pipe(rename('DEBIAN/postinst'));
|
.pipe(rename('DEBIAN/postinst'));
|
||||||
|
|
||||||
const all = es.merge(control, postinst, postrm, prerm, desktops, appdata, workspaceMime, icon, bash_completion, zsh_completion, code);
|
const all = es.merge(control, postinst, postrm, prerm, desktops, appdata, workspaceMime, icon, icon256, icon128, icon64, icon48, icon32, icon24, icon22, icon16, bash_completion, zsh_completion, code);
|
||||||
|
|
||||||
return all.pipe(vfs.dest(destination));
|
return all.pipe(vfs.dest(destination));
|
||||||
};
|
};
|
||||||
|
|
After Width: | Height: | Size: 835 B |
After Width: | Height: | Size: 358 B |
After Width: | Height: | Size: 412 B |
After Width: | Height: | Size: 435 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 506 B |
After Width: | Height: | Size: 572 B |
After Width: | Height: | Size: 618 B |