[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;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"gulp-babel": "^7.0.0",
|
||||
"gulp-clean": "^0.3.2",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-debian": "^0.1.9",
|
||||
"gulp-run": "^1.7.1",
|
||||
"gulp-template": "^5.0.0",
|
||||
"gulp-uglify": "^3.0.0",
|
||||
|
||||
7
src/client/tankz.desktop
Normal file
7
src/client/tankz.desktop
Normal file
@@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Type=Application
|
||||
Comment=Tank'z game
|
||||
Exec=/opt/tankz/tankz
|
||||
Icon=/usr/tankz/resources/images/tank/player/tank_p3_0-0.png
|
||||
Name=Tank'z
|
||||
Reference in New Issue
Block a user