From a4bbeb25738c9f1462b33909c23186cce5faa190 Mon Sep 17 00:00:00 2001 From: shmyga Date: Fri, 30 Aug 2019 15:52:23 +0300 Subject: [PATCH] up version --- gulpfile.js | 7 +++---- package.json | 2 +- src/client/haxe/ru/m/tankz/view/MenuFrame.yaml | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index de99d0e..d8bd02c 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -29,9 +29,9 @@ exports.generate = function generate() { exports.levels = function levels() { return gulp.src("./src/common/level/*").pipe(foreach(function (stream, file) { - const type = file.path.substr(file.path.lastIndexOf("/") + 1); + const type = file.path.substr(file.path.lastIndexOf(path.sep) + 1); gulp.src("./src/common/level/" + type + "/*").pipe(foreach(function (stream, file) { - const name = file.path.substr(file.path.lastIndexOf("/") + 1); + const name = file.path.substr(file.path.lastIndexOf(path.sep) + 1); gulp.src("./src/common/level/" + type + "/" + name + "/*") .pipe(zip(`${type}_${name}.zip`)) .pipe(gulp.dest("./target/levels")); @@ -109,7 +109,6 @@ const client = new Project( `CompilationOption.set('port',${port})`, ] }), - module.exports.generate ).bind(module, gulp); /** @@ -152,7 +151,6 @@ const server = new Project( sources: ['src/server/haxe'], main: 'ru.m.tankz.server.Server', }), - module.exports.generate ).bind(module, gulp); /** @@ -188,6 +186,7 @@ exports.publish = function publish() { module.exports.default = gulp.series( exports.clean, exports.levels, + exports.generate, module.exports['client:flash:build'], module.exports['client:flash:html'], module.exports['client:html5:build'], diff --git a/package.json b/package.json index ded06a0..a79d8e3 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tankz", - "version": "0.16.9", + "version": "0.16.10", "private": true, "devDependencies": { "dateformat": "^3.0.3", diff --git a/src/client/haxe/ru/m/tankz/view/MenuFrame.yaml b/src/client/haxe/ru/m/tankz/view/MenuFrame.yaml index 8ef3937..f2a6060 100644 --- a/src/client/haxe/ru/m/tankz/view/MenuFrame.yaml +++ b/src/client/haxe/ru/m/tankz/view/MenuFrame.yaml @@ -74,5 +74,6 @@ views: geometry.width: 50% - id: update $type: haxework.view.form.ButtonView + style: button.active +onPress: ~appUpdate() visible: false