[gulp] add windows target
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user