From 3b76c30db203d11226d798055d02f898e87932fb Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 7 Feb 2025 04:16:15 +0100 Subject: [PATCH] fix automatic license header inserter still using 2023 (lmao) --- eslint.config.mjs | 11 ++++++----- package.json | 2 +- scripts/build/build.mts | 2 +- scripts/build/injectReact.mjs | 6 ------ scripts/build/sandboxFix.js | 2 +- scripts/build/vencordDep.mts | 2 +- scripts/header.txt | 4 ++-- scripts/startWatch.mts | 2 +- scripts/utils/dotenv.ts | 2 +- scripts/utils/spawn.mts | 2 +- scripts/utils/updateMeta.mts | 2 +- src/globals.d.ts | 2 +- src/main/about.ts | 2 +- src/main/appBadge.ts | 2 +- src/main/arrpc.ts | 2 +- src/main/autoStart.ts | 2 +- src/main/constants.ts | 2 +- src/main/firstLaunch.ts | 2 +- src/main/index.ts | 2 +- src/main/ipc.ts | 2 +- src/main/ipcCommands.ts | 4 ++-- src/main/mainWindow.ts | 2 +- src/main/mediaPermissions.ts | 2 +- src/main/screenShare.ts | 2 +- src/main/settings.ts | 2 +- src/main/splash.ts | 2 +- src/main/utils/http.ts | 2 +- src/main/utils/ipcWrappers.ts | 2 +- src/main/utils/makeLinksOpenExternally.ts | 2 +- src/main/utils/popout.ts | 2 +- src/main/utils/steamOS.ts | 2 +- src/main/utils/vencordLoader.ts | 2 +- src/main/venmic.ts | 2 +- src/preload/VesktopNative.ts | 2 +- src/preload/index.ts | 2 +- src/preload/typedIpc.ts | 2 +- src/renderer/appBadge.ts | 2 +- src/renderer/arrpc.ts | 4 ++-- src/renderer/components/ScreenSharePicker.tsx | 2 +- src/renderer/components/index.ts | 2 +- src/renderer/components/settings/AutoStartToggle.tsx | 2 +- src/renderer/components/settings/DeveloperOptions.tsx | 4 ++-- .../components/settings/DiscordBranchPicker.tsx | 2 +- .../components/settings/NotificationBadgeToggle.tsx | 2 +- src/renderer/components/settings/Settings.tsx | 2 +- .../settings/WindowsTransparencyControls.tsx | 2 +- src/renderer/fixes.ts | 2 +- src/renderer/index.ts | 2 +- src/renderer/ipcCommands.ts | 4 ++-- src/renderer/logger.ts | 4 ++-- src/renderer/patches/enableNotificationsByDefault.ts | 2 +- src/renderer/patches/hideDownloadAppsButton.ts | 4 ++-- src/renderer/patches/hideSwitchDevice.tsx | 2 +- src/renderer/patches/hideVenmicInput.tsx | 2 +- src/renderer/patches/index.ts | 2 +- src/renderer/patches/nativeFocus.tsx | 4 ++-- src/renderer/patches/platformClass.tsx | 2 +- src/renderer/patches/screenShareFixes.ts | 2 +- src/renderer/patches/shared.ts | 2 +- src/renderer/patches/spellCheck.tsx | 2 +- src/renderer/patches/streamerMode.ts | 4 ++-- src/renderer/patches/windowsTitleBar.tsx | 2 +- src/renderer/settings.ts | 2 +- src/renderer/themedSplash.ts | 2 +- src/renderer/utils.ts | 2 +- src/shared/IpcEvents.ts | 2 +- src/shared/browserWinProperties.ts | 2 +- src/shared/paths.ts | 2 +- src/shared/settings.d.ts | 2 +- src/shared/utils/SettingsStore.ts | 2 +- src/shared/utils/debounce.ts | 2 +- src/shared/utils/guards.ts | 2 +- src/shared/utils/once.ts | 2 +- src/shared/utils/sleep.ts | 2 +- 74 files changed, 87 insertions(+), 92 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 04db88f..baf299c 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,14 +1,14 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ //@ts-check import stylistic from "@stylistic/eslint-plugin"; import pathAlias from "eslint-plugin-path-alias"; -import header from "eslint-plugin-simple-header"; +import simpleHeader from "eslint-plugin-simple-header"; import importSort from "eslint-plugin-simple-import-sort"; import unusedImports from "eslint-plugin-unused-imports"; import tseslint from "typescript-eslint"; @@ -20,7 +20,7 @@ export default tseslint.config( { files: ["src/**/*.{tsx,ts,mts,mjs,js,jsx}"], plugins: { - header, + simpleHeader, stylistic, importSort, unusedImports, @@ -42,10 +42,11 @@ export default tseslint.config( } }, rules: { - "header/header": [ + "simpleHeader/header": [ "error", { - files: ["scripts/header.txt"] + files: ["scripts/header.txt"], + templates: { author: [".*", "Vendicated and Vesktop contributors"] } } ], diff --git a/package.json b/package.json index 0553f1d..3a31179 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "Vesktop is a custom Discord desktop app", "keywords": [], "homepage": "https://vencord.dev/", - "license": "GPL-3.0", + "license": "GPL-3.0-or-later", "author": "Vendicated ", "main": "dist/js/main.js", "scripts": { diff --git a/scripts/build/build.mts b/scripts/build/build.mts index 243381b..b445517 100644 --- a/scripts/build/build.mts +++ b/scripts/build/build.mts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { BuildContext, BuildOptions, context } from "esbuild"; diff --git a/scripts/build/injectReact.mjs b/scripts/build/injectReact.mjs index f9ce52b..4ead9e3 100644 --- a/scripts/build/injectReact.mjs +++ b/scripts/build/injectReact.mjs @@ -1,9 +1,3 @@ -/* - * 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 - */ - export const VencordFragment = /* #__PURE__*/ Symbol.for("react.fragment"); export let VencordCreateElement = (...args) => (VencordCreateElement = Vencord.Webpack.Common.React.createElement)(...args); diff --git a/scripts/build/sandboxFix.js b/scripts/build/sandboxFix.js index 327ee24..ff04732 100644 --- a/scripts/build/sandboxFix.js +++ b/scripts/build/sandboxFix.js @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ // Based on https://github.com/gergof/electron-builder-sandbox-fix/blob/master/lib/index.js diff --git a/scripts/build/vencordDep.mts b/scripts/build/vencordDep.mts index d285940..ac888c0 100644 --- a/scripts/build/vencordDep.mts +++ b/scripts/build/vencordDep.mts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { globalExternalsWithRegExp } from "@fal-works/esbuild-plugin-global-externals"; diff --git a/scripts/header.txt b/scripts/header.txt index 9fdad8f..744309c 100644 --- a/scripts/header.txt +++ b/scripts/header.txt @@ -1,5 +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 + * Copyright (c) {year} {author} + * SPDX-License-Identifier: GPL-3.0-or-later */ diff --git a/scripts/startWatch.mts b/scripts/startWatch.mts index 4a6f2e5..ae332b6 100644 --- a/scripts/startWatch.mts +++ b/scripts/startWatch.mts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import "./start"; diff --git a/scripts/utils/dotenv.ts b/scripts/utils/dotenv.ts index 1dd697f..cbeaca4 100644 --- a/scripts/utils/dotenv.ts +++ b/scripts/utils/dotenv.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { config } from "dotenv"; diff --git a/scripts/utils/spawn.mts b/scripts/utils/spawn.mts index a2c0a5f..eddb965 100644 --- a/scripts/utils/spawn.mts +++ b/scripts/utils/spawn.mts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { spawn as spaaawn, SpawnOptions } from "child_process"; diff --git a/scripts/utils/updateMeta.mts b/scripts/utils/updateMeta.mts index 44327b7..2771f92 100644 --- a/scripts/utils/updateMeta.mts +++ b/scripts/utils/updateMeta.mts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { promises as fs } from "node:fs"; diff --git a/src/globals.d.ts b/src/globals.d.ts index 4d39c4c..6d95b92 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ declare global { diff --git a/src/main/about.ts b/src/main/about.ts index 4d9f541..88c3d65 100644 --- a/src/main/about.ts +++ b/src/main/about.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { BrowserWindow } from "electron"; diff --git a/src/main/appBadge.ts b/src/main/appBadge.ts index 46abe1d..21bddb2 100644 --- a/src/main/appBadge.ts +++ b/src/main/appBadge.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { app, NativeImage, nativeImage } from "electron"; diff --git a/src/main/arrpc.ts b/src/main/arrpc.ts index da29a77..9f6ee32 100644 --- a/src/main/arrpc.ts +++ b/src/main/arrpc.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import Server from "arrpc"; diff --git a/src/main/autoStart.ts b/src/main/autoStart.ts index 19d7e00..958dbb9 100644 --- a/src/main/autoStart.ts +++ b/src/main/autoStart.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { app } from "electron"; diff --git a/src/main/constants.ts b/src/main/constants.ts index 81cfd53..01bdd80 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { app } from "electron"; diff --git a/src/main/firstLaunch.ts b/src/main/firstLaunch.ts index 9c2edec..69e01a0 100644 --- a/src/main/firstLaunch.ts +++ b/src/main/firstLaunch.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { app } from "electron"; diff --git a/src/main/index.ts b/src/main/index.ts index 9e9244f..f1bc617 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import "./ipc"; diff --git a/src/main/ipc.ts b/src/main/ipc.ts index 1798339..1dfb8e6 100644 --- a/src/main/ipc.ts +++ b/src/main/ipc.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ if (process.platform === "linux") import("./venmic"); diff --git a/src/main/ipcCommands.ts b/src/main/ipcCommands.ts index 2349b75..51332b4 100644 --- a/src/main/ipcCommands.ts +++ b/src/main/ipcCommands.ts @@ -1,7 +1,7 @@ /* - * 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 + * Copyright (c) 2025 Vendicated and Vencord contributors + * SPDX-License-Identifier: GPL-3.0-or-later */ import { randomUUID } from "crypto"; diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index cbb0def..c4159f5 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { diff --git a/src/main/mediaPermissions.ts b/src/main/mediaPermissions.ts index f7765be..6e7e664 100644 --- a/src/main/mediaPermissions.ts +++ b/src/main/mediaPermissions.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { session, systemPreferences } from "electron"; diff --git a/src/main/screenShare.ts b/src/main/screenShare.ts index 888e41b..5ba93a8 100644 --- a/src/main/screenShare.ts +++ b/src/main/screenShare.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { desktopCapturer, session, Streams } from "electron"; diff --git a/src/main/settings.ts b/src/main/settings.ts index b2aeea9..128ea54 100644 --- a/src/main/settings.ts +++ b/src/main/settings.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs"; diff --git a/src/main/splash.ts b/src/main/splash.ts index 2a26761..fe9c7c1 100644 --- a/src/main/splash.ts +++ b/src/main/splash.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { BrowserWindow } from "electron"; diff --git a/src/main/utils/http.ts b/src/main/utils/http.ts index baee81e..7d737b6 100644 --- a/src/main/utils/http.ts +++ b/src/main/utils/http.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { createWriteStream } from "fs"; diff --git a/src/main/utils/ipcWrappers.ts b/src/main/utils/ipcWrappers.ts index eeb4de8..7e8da42 100644 --- a/src/main/utils/ipcWrappers.ts +++ b/src/main/utils/ipcWrappers.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { ipcMain, IpcMainEvent, IpcMainInvokeEvent, WebFrameMain } from "electron"; diff --git a/src/main/utils/makeLinksOpenExternally.ts b/src/main/utils/makeLinksOpenExternally.ts index 12f2c3d..5d6cc75 100644 --- a/src/main/utils/makeLinksOpenExternally.ts +++ b/src/main/utils/makeLinksOpenExternally.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { BrowserWindow, shell } from "electron"; diff --git a/src/main/utils/popout.ts b/src/main/utils/popout.ts index cdeea61..dd26896 100644 --- a/src/main/utils/popout.ts +++ b/src/main/utils/popout.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { BrowserWindow, BrowserWindowConstructorOptions } from "electron"; diff --git a/src/main/utils/steamOS.ts b/src/main/utils/steamOS.ts index e61166c..1029168 100644 --- a/src/main/utils/steamOS.ts +++ b/src/main/utils/steamOS.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { BrowserWindow, dialog } from "electron"; diff --git a/src/main/utils/vencordLoader.ts b/src/main/utils/vencordLoader.ts index c0bac6a..a368c37 100644 --- a/src/main/utils/vencordLoader.ts +++ b/src/main/utils/vencordLoader.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { mkdirSync } from "fs"; diff --git a/src/main/venmic.ts b/src/main/venmic.ts index c127e90..b6a0d08 100644 --- a/src/main/venmic.ts +++ b/src/main/venmic.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import type { LinkData, Node, PatchBay as PatchBayType } from "@vencord/venmic"; diff --git a/src/preload/VesktopNative.ts b/src/preload/VesktopNative.ts index 1d200bc..69884cd 100644 --- a/src/preload/VesktopNative.ts +++ b/src/preload/VesktopNative.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Node } from "@vencord/venmic"; diff --git a/src/preload/index.ts b/src/preload/index.ts index 75bf9cd..5003cc7 100644 --- a/src/preload/index.ts +++ b/src/preload/index.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { contextBridge, ipcRenderer, webFrame } from "electron"; diff --git a/src/preload/typedIpc.ts b/src/preload/typedIpc.ts index e8b519c..91129e0 100644 --- a/src/preload/typedIpc.ts +++ b/src/preload/typedIpc.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { ipcRenderer } from "electron"; diff --git a/src/renderer/appBadge.ts b/src/renderer/appBadge.ts index a6491c2..97f3e36 100644 --- a/src/renderer/appBadge.ts +++ b/src/renderer/appBadge.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { filters, waitFor } from "@vencord/types/webpack"; diff --git a/src/renderer/arrpc.ts b/src/renderer/arrpc.ts index b307d37..d19d8e7 100644 --- a/src/renderer/arrpc.ts +++ b/src/renderer/arrpc.ts @@ -1,7 +1,7 @@ /* - * 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 + * Copyright (c) 2025 Vendicated and Vencord contributors + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Logger } from "@vencord/types/utils"; diff --git a/src/renderer/components/ScreenSharePicker.tsx b/src/renderer/components/ScreenSharePicker.tsx index f69f9d5..dbecfc6 100644 --- a/src/renderer/components/ScreenSharePicker.tsx +++ b/src/renderer/components/ScreenSharePicker.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import "./screenSharePicker.css"; diff --git a/src/renderer/components/index.ts b/src/renderer/components/index.ts index 97ca03e..220c793 100644 --- a/src/renderer/components/index.ts +++ b/src/renderer/components/index.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ export * as ScreenShare from "./ScreenSharePicker"; diff --git a/src/renderer/components/settings/AutoStartToggle.tsx b/src/renderer/components/settings/AutoStartToggle.tsx index e0350d6..2fec7a6 100644 --- a/src/renderer/components/settings/AutoStartToggle.tsx +++ b/src/renderer/components/settings/AutoStartToggle.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Switch, useState } from "@vencord/types/webpack/common"; diff --git a/src/renderer/components/settings/DeveloperOptions.tsx b/src/renderer/components/settings/DeveloperOptions.tsx index eabfbd3..3d75b69 100644 --- a/src/renderer/components/settings/DeveloperOptions.tsx +++ b/src/renderer/components/settings/DeveloperOptions.tsx @@ -1,7 +1,7 @@ /* - * 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 + * Copyright (c) 2025 Vendicated and Vencord contributors + * SPDX-License-Identifier: GPL-3.0-or-later */ import { diff --git a/src/renderer/components/settings/DiscordBranchPicker.tsx b/src/renderer/components/settings/DiscordBranchPicker.tsx index c0b840d..10ccd63 100644 --- a/src/renderer/components/settings/DiscordBranchPicker.tsx +++ b/src/renderer/components/settings/DiscordBranchPicker.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Select } from "@vencord/types/webpack/common"; diff --git a/src/renderer/components/settings/NotificationBadgeToggle.tsx b/src/renderer/components/settings/NotificationBadgeToggle.tsx index 1cf1d19..598bfa7 100644 --- a/src/renderer/components/settings/NotificationBadgeToggle.tsx +++ b/src/renderer/components/settings/NotificationBadgeToggle.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Switch } from "@vencord/types/webpack/common"; diff --git a/src/renderer/components/settings/Settings.tsx b/src/renderer/components/settings/Settings.tsx index 2531469..7baae7c 100644 --- a/src/renderer/components/settings/Settings.tsx +++ b/src/renderer/components/settings/Settings.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import "./settings.css"; diff --git a/src/renderer/components/settings/WindowsTransparencyControls.tsx b/src/renderer/components/settings/WindowsTransparencyControls.tsx index 0ef9a8a..14d3f8e 100644 --- a/src/renderer/components/settings/WindowsTransparencyControls.tsx +++ b/src/renderer/components/settings/WindowsTransparencyControls.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Margins } from "@vencord/types/utils"; diff --git a/src/renderer/fixes.ts b/src/renderer/fixes.ts index 90e7da5..c9650b5 100644 --- a/src/renderer/fixes.ts +++ b/src/renderer/fixes.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import "./fixes.css"; diff --git a/src/renderer/index.ts b/src/renderer/index.ts index 80b9371..0f863cc 100644 --- a/src/renderer/index.ts +++ b/src/renderer/index.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import "./themedSplash"; diff --git a/src/renderer/ipcCommands.ts b/src/renderer/ipcCommands.ts index cf96435..1c41769 100644 --- a/src/renderer/ipcCommands.ts +++ b/src/renderer/ipcCommands.ts @@ -1,7 +1,7 @@ /* - * 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 + * Copyright (c) 2025 Vendicated and Vencord contributors + * SPDX-License-Identifier: GPL-3.0-or-later */ import { SettingsRouter } from "@vencord/types/webpack/common"; diff --git a/src/renderer/logger.ts b/src/renderer/logger.ts index abdf9a2..313fdb9 100644 --- a/src/renderer/logger.ts +++ b/src/renderer/logger.ts @@ -1,7 +1,7 @@ /* - * 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 + * Copyright (c) 2025 Vendicated and Vencord contributors + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Logger } from "@vencord/types/utils"; diff --git a/src/renderer/patches/enableNotificationsByDefault.ts b/src/renderer/patches/enableNotificationsByDefault.ts index 5854977..e4ca67a 100644 --- a/src/renderer/patches/enableNotificationsByDefault.ts +++ b/src/renderer/patches/enableNotificationsByDefault.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { addPatch } from "./shared"; diff --git a/src/renderer/patches/hideDownloadAppsButton.ts b/src/renderer/patches/hideDownloadAppsButton.ts index 09e60b0..99e2f5f 100644 --- a/src/renderer/patches/hideDownloadAppsButton.ts +++ b/src/renderer/patches/hideDownloadAppsButton.ts @@ -1,7 +1,7 @@ /* - * 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 + * Copyright (c) 2025 Vendicated and Vencord contributors + * SPDX-License-Identifier: GPL-3.0-or-later */ import { addPatch } from "./shared"; diff --git a/src/renderer/patches/hideSwitchDevice.tsx b/src/renderer/patches/hideSwitchDevice.tsx index 20aa51a..f0a7597 100644 --- a/src/renderer/patches/hideSwitchDevice.tsx +++ b/src/renderer/patches/hideSwitchDevice.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { addPatch } from "./shared"; diff --git a/src/renderer/patches/hideVenmicInput.tsx b/src/renderer/patches/hideVenmicInput.tsx index ca706ce..357582c 100644 --- a/src/renderer/patches/hideVenmicInput.tsx +++ b/src/renderer/patches/hideVenmicInput.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { addPatch } from "./shared"; diff --git a/src/renderer/patches/index.ts b/src/renderer/patches/index.ts index 299753b..439d558 100644 --- a/src/renderer/patches/index.ts +++ b/src/renderer/patches/index.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ // TODO: Possibly auto generate glob if we have more patches in the future diff --git a/src/renderer/patches/nativeFocus.tsx b/src/renderer/patches/nativeFocus.tsx index 475577d..fe8720d 100644 --- a/src/renderer/patches/nativeFocus.tsx +++ b/src/renderer/patches/nativeFocus.tsx @@ -1,7 +1,7 @@ /* - * 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 + * Copyright (c) 2025 Vendicated and Vencord contributors + * SPDX-License-Identifier: GPL-3.0-or-later */ import { addPatch } from "./shared"; diff --git a/src/renderer/patches/platformClass.tsx b/src/renderer/patches/platformClass.tsx index 58767a8..8c382fe 100644 --- a/src/renderer/patches/platformClass.tsx +++ b/src/renderer/patches/platformClass.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Settings } from "renderer/settings"; diff --git a/src/renderer/patches/screenShareFixes.ts b/src/renderer/patches/screenShareFixes.ts index 21f5049..5a78bbd 100644 --- a/src/renderer/patches/screenShareFixes.ts +++ b/src/renderer/patches/screenShareFixes.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Logger } from "@vencord/types/utils"; diff --git a/src/renderer/patches/shared.ts b/src/renderer/patches/shared.ts index 3cd370a..dd8952e 100644 --- a/src/renderer/patches/shared.ts +++ b/src/renderer/patches/shared.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Patch } from "@vencord/types/utils/types"; diff --git a/src/renderer/patches/spellCheck.tsx b/src/renderer/patches/spellCheck.tsx index 040d41b..5396b49 100644 --- a/src/renderer/patches/spellCheck.tsx +++ b/src/renderer/patches/spellCheck.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { addContextMenuPatch } from "@vencord/types/api/ContextMenu"; diff --git a/src/renderer/patches/streamerMode.ts b/src/renderer/patches/streamerMode.ts index 252a4c3..c2b3179 100644 --- a/src/renderer/patches/streamerMode.ts +++ b/src/renderer/patches/streamerMode.ts @@ -1,7 +1,7 @@ /* - * 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 + * Copyright (c) 2025 Vendicated and Vencord contributors + * SPDX-License-Identifier: GPL-3.0-or-later */ import { addPatch } from "./shared"; diff --git a/src/renderer/patches/windowsTitleBar.tsx b/src/renderer/patches/windowsTitleBar.tsx index 401e1c5..f5ef07c 100644 --- a/src/renderer/patches/windowsTitleBar.tsx +++ b/src/renderer/patches/windowsTitleBar.tsx @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Settings } from "renderer/settings"; diff --git a/src/renderer/settings.ts b/src/renderer/settings.ts index 5c5ed32..0a5ba80 100644 --- a/src/renderer/settings.ts +++ b/src/renderer/settings.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { useEffect, useReducer } from "@vencord/types/webpack/common"; diff --git a/src/renderer/themedSplash.ts b/src/renderer/themedSplash.ts index f522696..13d762b 100644 --- a/src/renderer/themedSplash.ts +++ b/src/renderer/themedSplash.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { Settings } from "./settings"; diff --git a/src/renderer/utils.ts b/src/renderer/utils.ts index 307b1d4..e72775c 100644 --- a/src/renderer/utils.ts +++ b/src/renderer/utils.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ // Discord deletes this from the window so we need to capture it in a variable diff --git a/src/shared/IpcEvents.ts b/src/shared/IpcEvents.ts index 4fdd736..dd05e3b 100644 --- a/src/shared/IpcEvents.ts +++ b/src/shared/IpcEvents.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ export const enum IpcEvents { diff --git a/src/shared/browserWinProperties.ts b/src/shared/browserWinProperties.ts index b190697..89063eb 100644 --- a/src/shared/browserWinProperties.ts +++ b/src/shared/browserWinProperties.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import type { BrowserWindowConstructorOptions } from "electron"; diff --git a/src/shared/paths.ts b/src/shared/paths.ts index 483250a..a935d82 100644 --- a/src/shared/paths.ts +++ b/src/shared/paths.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { join } from "path"; diff --git a/src/shared/settings.d.ts b/src/shared/settings.d.ts index 659143e..0279aeb 100644 --- a/src/shared/settings.d.ts +++ b/src/shared/settings.d.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import type { Rectangle } from "electron"; diff --git a/src/shared/utils/SettingsStore.ts b/src/shared/utils/SettingsStore.ts index 2e835e8..fe753f6 100644 --- a/src/shared/utils/SettingsStore.ts +++ b/src/shared/utils/SettingsStore.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ import { LiteralUnion } from "type-fest"; diff --git a/src/shared/utils/debounce.ts b/src/shared/utils/debounce.ts index 17fdc74..d3b8d7f 100644 --- a/src/shared/utils/debounce.ts +++ b/src/shared/utils/debounce.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ /** diff --git a/src/shared/utils/guards.ts b/src/shared/utils/guards.ts index cba71d7..8827edc 100644 --- a/src/shared/utils/guards.ts +++ b/src/shared/utils/guards.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ export function isTruthy(item: T): item is Exclude { diff --git a/src/shared/utils/once.ts b/src/shared/utils/once.ts index 59cc1e2..074c181 100644 --- a/src/shared/utils/once.ts +++ b/src/shared/utils/once.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ /** diff --git a/src/shared/utils/sleep.ts b/src/shared/utils/sleep.ts index 948c5a3..7b4b390 100644 --- a/src/shared/utils/sleep.ts +++ b/src/shared/utils/sleep.ts @@ -1,7 +1,7 @@ /* - * 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 + * SPDX-License-Identifier: GPL-3.0-or-later */ export function sleep(ms: number): Promise {