diff --git a/build/version.js b/build/version.js deleted file mode 100644 index 2e7c713..0000000 --- a/build/version.js +++ /dev/null @@ -1,2 +0,0 @@ -const packageInfo = require('../package.json'); -module.exports = packageInfo.version; \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 91196f8..d1febbf 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -2,7 +2,6 @@ const gulp = require('gulp'); const clean = require('gulp-clean'); const Config = require('./config.json'); -const version = require('./build/version'); const packageInfo = require('./package.json'); const {Sdk, Haxe, Project} = require('gulp-haxetool'); const dateformat = require('dateformat'); @@ -44,14 +43,14 @@ const config = new Project.Config({ title: 'Tank\'z', pack: 'ru.m.tankz', company: 'MegaLoMania', - version: version, + version: packageInfo.version, }, libs: packageInfo.haxeDependencies, sources: [ 'src/common/haxe', 'src-gen/haxe', ], - macro: [ + macros: [ `CompilationOption.set('build','${dateformat(new Date(), 'yyyy-mm-dd HH:MM:ss')}')` ] }); diff --git a/src/client/haxe/ru/m/tankz/Client.hx b/src/client/haxe/ru/m/tankz/Client.hx index d90e323..a388919 100755 --- a/src/client/haxe/ru/m/tankz/Client.hx +++ b/src/client/haxe/ru/m/tankz/Client.hx @@ -23,7 +23,7 @@ class Client { L.push(new JSLogger()); #end #if debug - L.push(new SocketLogger()); + //L.push(new SocketLogger()); #end Const.init(); Init.init();