From 10d5e0df4067d523b78b9a5ec44de41f499fe9ee Mon Sep 17 00:00:00 2001 From: shmyga Date: Wed, 28 Aug 2019 07:24:19 +0300 Subject: [PATCH] [gulp] add windows target --- gulpfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index de99d0e..655eab0 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")); @@ -84,6 +84,7 @@ const client = new Project( Project.Platform.FLASH, Project.Platform.HTML5, Project.Platform.LINUX, + Project.Platform.WINDOWS, Project.Platform.ANDROID, ], config.branch({