build(docker): add docker builder

This commit is contained in:
2026-04-06 14:26:15 +03:00
parent 03d6e1f822
commit 27120bbed5
8 changed files with 127 additions and 5 deletions

View File

@@ -23,12 +23,25 @@ exports.clean = function clean() {
return gulp.src('target/*', {read: false}).pipe(gulpClean());
};
exports.generate = function generate() {
return new Haxe().haxelib(['run', 'protohx', 'generate', 'protohx.json']).then(({stdout}) => {
if (stdout.indexOf('FAIL') > -1) {
throw stdout;
exports.setup = function setup() {
const builder = Project.Builder.new(
client.config,
Project.Platform.ANDROID,
client.buildSystem,
);
return builder.prepare();
};
exports.generate = function generate() {
return exports.setup().then(() =>
new Haxe()
.haxelib(["run", "protohx", "generate", "protohx.json"])
.then(({ stdout }) => {
if (stdout.indexOf("FAIL") > -1) {
throw stdout;
}
});
}),
);
};
/**