mirror of
https://github.com/Vencord/Vesktop.git
synced 2026-11-20 00:51:15 -08:00
16 lines
438 B
TypeScript
16 lines
438 B
TypeScript
/*
|
|
* SPDX-License-Identifier: GPL-3.0
|
|
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
|
|
* Copyright (c) 2023 Vendicated and Vencord contributors
|
|
*/
|
|
|
|
import { spawnNodeModuleBin } from "./utils/spawn.mjs";
|
|
|
|
const flags = [process.cwd(), "--enable-source-maps"];
|
|
|
|
if (process.env.ELECTRON_LAUNCH_FLAGS) {
|
|
flags.push(...process.env.ELECTRON_LAUNCH_FLAGS.split(" "));
|
|
}
|
|
|
|
spawnNodeModuleBin("electron", flags);
|