@@ -52,6 +52,11 @@ function prepareDebPackage(arch) {
5252 . pipe ( replace ( '@@LICENSE@@' , product . licenseName ) )
5353 . pipe ( rename ( 'usr/share/appdata/' + product . applicationName + '.appdata.xml' ) ) ;
5454
55+ const workspaceMime = gulp . src ( 'resources/code-workspace.xml' , { base : '.' } )
56+ . pipe ( replace ( '@@NAME_LONG@@' , product . nameLong ) )
57+ . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
58+ . pipe ( rename ( 'usr/share/mime/packages/' + product . applicationName + '-workspace.xml' ) ) ;
59+
5560 const icon = gulp . src ( 'resources/linux/code.png' , { base : '.' } )
5661 . pipe ( rename ( 'usr/share/pixmaps/' + product . linuxIconName + '.png' ) ) ;
5762
@@ -95,7 +100,7 @@ function prepareDebPackage(arch) {
95100 . pipe ( replace ( '@@UPDATEURL@@' , product . updateUrl || '@@UPDATEURL@@' ) )
96101 . pipe ( rename ( 'DEBIAN/postinst' ) ) ;
97102
98- const all = es . merge ( control , postinst , postrm , prerm , desktops , appdata , icon , bash_completion , zsh_completion , code ) ;
103+ const all = es . merge ( control , postinst , postrm , prerm , desktops , appdata , workspaceMime , icon , bash_completion , zsh_completion , code ) ;
99104
100105 return all . pipe ( vfs . dest ( destination ) ) ;
101106 } ;
@@ -143,6 +148,11 @@ function prepareRpmPackage(arch) {
143148 . pipe ( replace ( '@@LICENSE@@' , product . licenseName ) )
144149 . pipe ( rename ( 'usr/share/appdata/' + product . applicationName + '.appdata.xml' ) ) ;
145150
151+ const workspaceMime = gulp . src ( 'resources/code-workspace.xml' , { base : '.' } )
152+ . pipe ( replace ( '@@NAME_LONG@@' , product . nameLong ) )
153+ . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
154+ . pipe ( rename ( 'BUILD/usr/share/mime/packages/' + product . applicationName + '-workspace.xml' ) ) ;
155+
146156 const icon = gulp . src ( 'resources/linux/code.png' , { base : '.' } )
147157 . pipe ( rename ( 'BUILD/usr/share/pixmaps/' + product . linuxIconName + '.png' ) ) ;
148158
@@ -173,7 +183,7 @@ function prepareRpmPackage(arch) {
173183 const specIcon = gulp . src ( 'resources/linux/rpm/code.xpm' , { base : '.' } )
174184 . pipe ( rename ( 'SOURCES/' + product . applicationName + '.xpm' ) ) ;
175185
176- const all = es . merge ( code , desktops , appdata , icon , bash_completion , zsh_completion , spec , specIcon ) ;
186+ const all = es . merge ( code , desktops , appdata , workspaceMime , icon , bash_completion , zsh_completion , spec , specIcon ) ;
177187
178188 return all . pipe ( vfs . dest ( getRpmBuildPath ( rpmArch ) ) ) ;
179189 } ;
0 commit comments