feat:修改软件图标icon.
|
@ -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));
|
||||||
};
|
};
|
||||||
|
|
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 1.9 KiB |