[build] deb package
This commit is contained in:
@@ -58,8 +58,10 @@ const webapp = function () {
|
||||
};
|
||||
|
||||
|
||||
const buildDeb = function() {
|
||||
return gulp.src('target/linux/**')
|
||||
const buildDeb = gulp.series(
|
||||
() => gulp.src('src/client/debian/**/*').pipe(gulp.dest('target/debian')),
|
||||
() => gulp.src('target/linux/**/*').pipe(gulp.dest('target/debian/usr/share/tankz')),
|
||||
() => gulp.src('target/debian/*')
|
||||
.pipe(deb({
|
||||
package: 'tankz',
|
||||
version: version,
|
||||
@@ -69,12 +71,17 @@ const buildDeb = function() {
|
||||
maintainer: 'shmyga <shmyga.z@gmail.com>',
|
||||
description: 'Tank\'z',
|
||||
changelog: [],
|
||||
_target: '/opt/tankz',
|
||||
postinst: [
|
||||
'if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ] ; then\n' +
|
||||
' update-menus\n' +
|
||||
'fi'
|
||||
],
|
||||
_target: '/',
|
||||
_out: 'target',
|
||||
_clean: false,
|
||||
_verbose: true
|
||||
}));
|
||||
};
|
||||
}))
|
||||
);
|
||||
|
||||
|
||||
exports['client:flash:html'] = gulp.parallel(flashIndex, flashJs);
|
||||
@@ -105,16 +112,13 @@ const testHtml5 = function() {
|
||||
)();
|
||||
};
|
||||
|
||||
const testLinux = function() {
|
||||
const argv = yargs.argv;
|
||||
return gulp.series(
|
||||
build('linux'),
|
||||
() => gulp.src('target/linux/tankz')
|
||||
.pipe(run('./tankz', {cwd: 'target/linux', verbosity: 1}))
|
||||
.pipe(tail(debug.log))
|
||||
.pipe(gulp.dest('target/log'))
|
||||
)();
|
||||
};
|
||||
const testLinux = gulp.series(
|
||||
build('linux'),
|
||||
() => gulp.src('target/linux/tankz')
|
||||
.pipe(run('./tankz', {cwd: 'target/linux', verbosity: 1}))
|
||||
.pipe(tail(debug.log))
|
||||
.pipe(gulp.dest('target/log'))
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user