@@ -292,23 +292,14 @@ function prepareDebPackage(arch) {
292292 . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
293293 . pipe ( rename ( 'DEBIAN/prerm' ) )
294294
295- var all = es . merge ( control , prerm , desktop , icon , shortcut , code ) ;
296-
297- // Register an apt repository if this is an official build
298- if ( product . updateUrl && product . quality ) {
299- var postinst = gulp . src ( 'resources/linux/debian/postinst.template' , { base : '.' } )
300- . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
301- . pipe ( replace ( '@@UPDATEURL@@' , product . updateUrl ) )
302- . pipe ( replace ( '@@QUALITY@@' , product . quality ) )
303- . pipe ( replace ( '@@ARCHITECTURE@@' , debArch ) )
304- . pipe ( rename ( 'DEBIAN/postinst' ) )
305- all = es . merge ( all , postinst ) ;
306- } else {
307- var postinst = gulp . src ( 'resources/linux/debian/postinst.oss.template' , { base : '.' } )
308- . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
309- . pipe ( rename ( 'DEBIAN/postinst' ) )
310- all = es . merge ( all , postinst ) ;
311- }
295+ var postinst = gulp . src ( 'resources/linux/debian/postinst.template' , { base : '.' } )
296+ . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
297+ . pipe ( replace ( '@@ARCHITECTURE@@' , debArch ) )
298+ . pipe ( replace ( '@@QUALITY@@' , product . quality || '@@QUALITY@@' ) )
299+ . pipe ( replace ( '@@UPDATEURL@@' , product . updateUrl || '@@UPDATEURL@@' ) )
300+ . pipe ( rename ( 'DEBIAN/postinst' ) )
301+
302+ var all = es . merge ( control , postinst , prerm , desktop , icon , shortcut , code ) ;
312303
313304 return all . pipe ( symdest ( destination ) ) ;
314305 } ;
0 commit comments