21 lines
643 B
TypeScript
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);
|