[build] added deb task
This commit is contained in:
@@ -12,6 +12,7 @@ const debug = require('../tasks/debug');
|
||||
const webserver = require('gulp-webserver');
|
||||
const run = require('gulp-run');
|
||||
const tail = require('../tasks/tail');
|
||||
const deb = require('gulp-debian');
|
||||
|
||||
|
||||
const generate = () => function generate() {
|
||||
@@ -56,12 +57,33 @@ const webapp = function () {
|
||||
return gulp.src('src/webapp/*').pipe(gulp.dest('target'));
|
||||
};
|
||||
|
||||
|
||||
const buildDeb = function() {
|
||||
return gulp.src('target/linux/**')
|
||||
.pipe(deb({
|
||||
package: 'tankz',
|
||||
version: version,
|
||||
section: 'base',
|
||||
priority: 'optional',
|
||||
architecture: 'all',
|
||||
maintainer: 'shmyga <shmyga.z@gmail.com>',
|
||||
description: 'Tank\'z',
|
||||
changelog: [],
|
||||
_target: '/opt/tankz',
|
||||
_out: 'target',
|
||||
_clean: false,
|
||||
_verbose: true
|
||||
}));
|
||||
};
|
||||
|
||||
|
||||
exports['client:flash:html'] = gulp.parallel(flashIndex, flashJs);
|
||||
exports['client:flash'] = gulp.series(prepare(Haxe.ID), generate(), build('flash'), exports['client:flash:html']);
|
||||
exports['client:html5'] = gulp.series(prepare(Haxe.ID), generate(), build('html5'));
|
||||
exports['client:linux'] = gulp.series(prepare(Haxe.ID), generate(), build('linux'));
|
||||
exports['client:webapp'] = webapp;
|
||||
exports['client'] = gulp.series(prepare(Haxe.ID), generate(), gulp.parallel(build('flash'), build('html5')), exports['client:flash:html'], webapp);
|
||||
exports['client:deb'] = buildDeb;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user