stpettersens / gulp-debian

:tropical_drink: Gulp plug-in to create a Debian package.
https://libraries.io/npm/gulp-debian
Other
7 stars 10 forks source link

postinst script support #4

Closed OlafRadicke closed 7 years ago

OlafRadicke commented 7 years ago

Hi!

Same question like the changelog request: Do you have a idea for a implementation of a postinst script support? Do you prefer a embedded solution in the Gulpfile.js or more as an external file?

stpettersens commented 7 years ago

I do like this idea! I would implement similarly to CHANGELOG support. Please see issue #3.

OlafRadicke commented 7 years ago

Okay, here my format suggestion for the embedded way:

gulp.task('dist_deb', function () {
    return gulp.src(['./bin/hello-world'])
        .pipe(deb({
            package: 'hello-world',
            version: '3.1.7',
            section: 'base',
            priority: 'optional',
            architecture: 'all',
            maintainer: 'Olaf Radicke <o.radicke@meteocontrol.de>',
            description: 'Only a example',
            preinst: [ "addgroup foo-prog"],
            postinst: [ "systemctl daemon-reload", "systemctel enable foo-prog"]
            _target: '/usr/bin/',
            _out: 'dist'
        }))
});
stpettersens commented 7 years ago

Looks excellent. Nice work!

On 22 December 2016 at 11:01, Olaf Radicke notifications@github.com wrote:

Okay, here my format suggestion for the embedded way:

gulp.task('dist_deb', function () { return gulp.src(['./bin/hello-world']) .pipe(deb({ package: 'hello-world', version: '3.1.7', section: 'base', priority: 'optional', architecture: 'all', maintainer: 'Olaf Radicke o.radicke@meteocontrol.de', description: 'Only a example', preinst: [ "addgroup foo-prog"], postinst: [ "systemctl daemon-reload", "systemctel enable foo-prog"] _target: '/usr/bin/', _out: 'dist' })) });

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stpettersens/gulp-debian/issues/4#issuecomment-268776744, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVsGUV5JxR_e_0DL6B2r6v9nM5_-oIFks5rKlh_gaJpZM4LTurA .

stpettersens commented 7 years ago

This is now (at least initially) implemented for preinst and postinst under version 0.1.4.

OlafRadicke commented 7 years ago

Thank you very much!

stpettersens commented 7 years ago

You're welcome. Happy New Year!