[build] deb package
This commit is contained in:
@@ -58,8 +58,10 @@ const webapp = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const buildDeb = function() {
|
const buildDeb = gulp.series(
|
||||||
return gulp.src('target/linux/**')
|
() => 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({
|
.pipe(deb({
|
||||||
package: 'tankz',
|
package: 'tankz',
|
||||||
version: version,
|
version: version,
|
||||||
@@ -69,12 +71,17 @@ const buildDeb = function() {
|
|||||||
maintainer: 'shmyga <shmyga.z@gmail.com>',
|
maintainer: 'shmyga <shmyga.z@gmail.com>',
|
||||||
description: 'Tank\'z',
|
description: 'Tank\'z',
|
||||||
changelog: [],
|
changelog: [],
|
||||||
_target: '/opt/tankz',
|
postinst: [
|
||||||
|
'if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ] ; then\n' +
|
||||||
|
' update-menus\n' +
|
||||||
|
'fi'
|
||||||
|
],
|
||||||
|
_target: '/',
|
||||||
_out: 'target',
|
_out: 'target',
|
||||||
_clean: false,
|
_clean: false,
|
||||||
_verbose: true
|
_verbose: true
|
||||||
}));
|
}))
|
||||||
};
|
);
|
||||||
|
|
||||||
|
|
||||||
exports['client:flash:html'] = gulp.parallel(flashIndex, flashJs);
|
exports['client:flash:html'] = gulp.parallel(flashIndex, flashJs);
|
||||||
@@ -105,16 +112,13 @@ const testHtml5 = function() {
|
|||||||
)();
|
)();
|
||||||
};
|
};
|
||||||
|
|
||||||
const testLinux = function() {
|
const testLinux = gulp.series(
|
||||||
const argv = yargs.argv;
|
build('linux'),
|
||||||
return gulp.series(
|
() => gulp.src('target/linux/tankz')
|
||||||
build('linux'),
|
.pipe(run('./tankz', {cwd: 'target/linux', verbosity: 1}))
|
||||||
() => gulp.src('target/linux/tankz')
|
.pipe(tail(debug.log))
|
||||||
.pipe(run('./tankz', {cwd: 'target/linux', verbosity: 1}))
|
.pipe(gulp.dest('target/log'))
|
||||||
.pipe(tail(debug.log))
|
);
|
||||||
.pipe(gulp.dest('target/log'))
|
|
||||||
)();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
9
src/client/debian/usr/share/applications/tankz.desktop
Normal file
9
src/client/debian/usr/share/applications/tankz.desktop
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Type=Application
|
||||||
|
Comment=Tank'z game
|
||||||
|
Exec=bash -c 'cd "/usr/share/tankz" && ./tankz'
|
||||||
|
Icon=/usr/share/tankz/resources/images/tank/player/tank_p3_0-0.png
|
||||||
|
Name=Tank'z
|
||||||
|
Categories=Game
|
||||||
|
Terminal=false
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[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