Remove bin command in post install step for deb

This commit is contained in:
Daniel Imms 2016-05-13 15:28:28 -07:00
parent 0b37d2acb9
commit d96e0df5ba
2 changed files with 11 additions and 1 deletions

View file

@ -296,6 +296,10 @@ function prepareDebPackage(arch) {
.pipe(replace('@@NAME@@', product.applicationName))
.pipe(rename('DEBIAN/prerm'))
var postrm = gulp.src('resources/linux/debian/postrm.template', { base: '.' })
.pipe(replace('@@NAME@@', product.applicationName))
.pipe(rename('DEBIAN/postrm'))
var postinst = gulp.src('resources/linux/debian/postinst.template', { base: '.' })
.pipe(replace('@@NAME@@', product.applicationName))
.pipe(replace('@@ARCHITECTURE@@', debArch))
@ -303,7 +307,7 @@ function prepareDebPackage(arch) {
.pipe(replace('@@UPDATEURL@@', product.updateUrl || '@@UPDATEURL@@'))
.pipe(rename('DEBIAN/postinst'))
var all = es.merge(control, postinst, prerm, desktop, icon, code);
var all = es.merge(control, postinst, postrm, prerm, desktop, icon, code);
return all.pipe(symdest(destination));
};

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
rm -f /usr/bin/@@NAME@@