🏡 index : quine-global-boneyard/electron-builder.git

import { exec, ExtraSpawnOptions, spawn } from "builder-util"
import { ExecFileOptions, SpawnOptions } from "child_process"
import { VmManager } from "./vm"

export class MonoVmManager extends VmManager {
  constructor() {
    super()
  }

  exec(file: string, args: Array<string>, options?: ExecFileOptions, isLogOutIfDebug = true): Promise<string> {
    return exec(
      "mono",
      [file].concat(args),
      {
        ...options,
      },
      isLogOutIfDebug
    )
  }

  spawn(file: string, args: Array<string>, options?: SpawnOptions, extraOptions?: ExtraSpawnOptions): Promise<any> {
    return spawn("mono", [file].concat(args), options, extraOptions)
  }
}