@@ -42,7 +42,7 @@ function prepareDebPackage(arch) {
4242 . pipe ( replace ( '@@NAME_LONG@@' , product . nameLong ) )
4343 . pipe ( replace ( '@@NAME_SHORT@@' , product . nameShort ) )
4444 . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
45- . pipe ( replace ( '@@ICON@@' , product . iconName ) )
45+ . pipe ( replace ( '@@ICON@@' , product . linuxIconName ) )
4646 . pipe ( replace ( '@@URLPROTOCOL@@' , product . urlProtocol ) ) ;
4747
4848 const appdata = gulp . src ( 'resources/linux/code.appdata.xml' , { base : '.' } )
@@ -52,7 +52,7 @@ function prepareDebPackage(arch) {
5252 . pipe ( rename ( 'usr/share/appdata/' + product . applicationName + '.appdata.xml' ) ) ;
5353
5454 const icon = gulp . src ( 'resources/linux/code.png' , { base : '.' } )
55- . pipe ( rename ( 'usr/share/pixmaps/' + product . applicationName + '.png' ) ) ;
55+ . pipe ( rename ( 'usr/share/pixmaps/' + product . linuxIconName + '.png' ) ) ;
5656
5757 // const bash_completion = gulp.src('resources/completions/bash/code')
5858 // .pipe(rename('usr/share/bash-completion/completions/code'));
@@ -132,7 +132,7 @@ function prepareRpmPackage(arch) {
132132 . pipe ( replace ( '@@NAME_LONG@@' , product . nameLong ) )
133133 . pipe ( replace ( '@@NAME_SHORT@@' , product . nameShort ) )
134134 . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
135- . pipe ( replace ( '@@ICON@@' , product . iconName ) )
135+ . pipe ( replace ( '@@ICON@@' , product . linuxIconName ) )
136136 . pipe ( replace ( '@@URLPROTOCOL@@' , product . urlProtocol ) ) ;
137137
138138 const appdata = gulp . src ( 'resources/linux/code.appdata.xml' , { base : '.' } )
@@ -142,7 +142,7 @@ function prepareRpmPackage(arch) {
142142 . pipe ( rename ( 'usr/share/appdata/' + product . applicationName + '.appdata.xml' ) ) ;
143143
144144 const icon = gulp . src ( 'resources/linux/code.png' , { base : '.' } )
145- . pipe ( rename ( 'BUILD/usr/share/pixmaps/' + product . applicationName + '.png' ) ) ;
145+ . pipe ( rename ( 'BUILD/usr/share/pixmaps/' + product . linuxIconName + '.png' ) ) ;
146146
147147 // const bash_completion = gulp.src('resources/completions/bash/code')
148148 // .pipe(rename('BUILD/usr/share/bash-completion/completions/code'));
@@ -202,11 +202,11 @@ function prepareSnapPackage(arch) {
202202 . pipe ( replace ( '@@NAME_LONG@@' , product . nameLong ) )
203203 . pipe ( replace ( '@@NAME_SHORT@@' , product . nameShort ) )
204204 . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
205- . pipe ( replace ( '@@ICON@@' , `/usr/share/pixmaps/${ product . iconName } .png` ) )
205+ . pipe ( replace ( '@@ICON@@' , `/usr/share/pixmaps/${ product . linuxIconName } .png` ) )
206206 . pipe ( rename ( `usr/share/applications/${ product . applicationName } .desktop` ) ) ;
207207
208208 const icon = gulp . src ( 'resources/linux/code.png' , { base : '.' } )
209- . pipe ( rename ( `usr/share/pixmaps/${ product . applicationName } .png` ) ) ;
209+ . pipe ( rename ( `usr/share/pixmaps/${ product . linuxIconName } .png` ) ) ;
210210
211211 const code = gulp . src ( binaryDir + '/**/*' , { base : binaryDir } )
212212 . pipe ( rename ( function ( p ) { p . dirname = `usr/share/${ product . applicationName } /${ p . dirname } ` ; } ) ) ;
0 commit comments