Files
gulp-haxetool/src/project/impl/runner/windows.ts
T
shmyga 6d269e3c82
test / test (push) Successful in 59s
feat: add task module
2026-11-10 15:34:23 +03:00

21 lines
643 B
TypeScript

import gulp from "gulp";
import path from "path";
import { type Config, Platform } from "../../../core/type";
import run from "../../../run";
import { Runner } from "../../core/runner";
export class WindowsRunner extends Runner {
constructor(config: Config, debug?: boolean) {
super(config, Platform.WINDOWS, debug);
}
call() {
const target = this.targetPath;
const filename = path.resolve(target, this.config.meta.filename + ".exe");
const result = gulp.src(filename).pipe(run("<%=file.basename%>", { cwd: target, verbosity: 0 }));
return this.log(result);
}
}
Runner.register(Platform.WINDOWS, WindowsRunner);