From 69325c1dc9ff61c0e3c8ccd8f4bd339bc1dfee6c Mon Sep 17 00:00:00 2001 From: aiek Date: Fri, 26 Jul 2024 19:06:19 +0300 Subject: [PATCH] Upload files to 'scripts' --- scripts/header.txt | 5 +++++ scripts/start.ts | 11 +++++++++++ scripts/startWatch.mts | 10 ++++++++++ 3 files changed, 26 insertions(+) create mode 100644 scripts/header.txt create mode 100644 scripts/start.ts create mode 100644 scripts/startWatch.mts diff --git a/scripts/header.txt b/scripts/header.txt new file mode 100644 index 0000000..825c310 --- /dev/null +++ b/scripts/header.txt @@ -0,0 +1,5 @@ +/* + * 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 + */ diff --git a/scripts/start.ts b/scripts/start.ts new file mode 100644 index 0000000..7ffc461 --- /dev/null +++ b/scripts/start.ts @@ -0,0 +1,11 @@ +/* + * 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 "./utils/dotenv"; + +import { spawnNodeModuleBin } from "./utils/spawn.mjs"; + +spawnNodeModuleBin("electron", [process.cwd(), ...(process.env.ELECTRON_LAUNCH_FLAGS?.split(" ") ?? [])]); diff --git a/scripts/startWatch.mts b/scripts/startWatch.mts new file mode 100644 index 0000000..9ab9be1 --- /dev/null +++ b/scripts/startWatch.mts @@ -0,0 +1,10 @@ +/* + * 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 "./start"; + +import { spawnNodeModuleBin } from "./utils/spawn.mjs"; +spawnNodeModuleBin("tsx", ["scripts/build/build.mts", "--", "--watch", "--dev"]);