feat:修改软件图标icon.

This commit is contained in:
chriswang521 2024-05-15 10:29:31 +08:00 committed by wangpenglong
parent cde9f1b090
commit c4e9a56776
6 changed files with 22 additions and 1 deletions

View File

@ -65,6 +65,27 @@ 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 icon512 = gulp.src('resources/linux/icons/code512.png', { base: '.' })
.pipe(rename('usr/share/icons/hicolor/512x512/apps/' + 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 icon96 = gulp.src('resources/linux/icons/code96.png', { base: '.' })
.pipe(rename('usr/share/icons/hicolor/96x96/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))
@ -107,7 +128,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, icon512, icon256, icon128, icon96, icon64, icon48, icon32, icon24, icon22, icon16, bash_completion, zsh_completion, code);
return all.pipe(vfs.dest(destination)); return all.pipe(vfs.dest(destination));
}; };

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB