mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-22 21:35:08 +00:00
18 lines
525 B
TypeScript
18 lines
525 B
TypeScript
/*
|
|
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
|
|
* Copyright (c) 2023 Vendicated and Vencord contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import { spawn as spaaawn, SpawnOptions } from "child_process";
|
|
import { join } from "path";
|
|
|
|
const EXT = process.platform === "win32" ? ".cmd" : "";
|
|
|
|
const OPTS: SpawnOptions = {
|
|
stdio: "inherit"
|
|
};
|
|
|
|
export function spawnNodeModuleBin(bin: string, args: string[]) {
|
|
spaaawn(join("node_modules", ".bin", bin + EXT), args, OPTS);
|
|
}
|