From c15014e7a82de57af924055d9eb7fdf4edb8db2a Mon Sep 17 00:00:00 2001 From: David Langley Date: Fri, 6 Sep 2024 17:56:18 +0100 Subject: [PATCH] Updated Copyright headers --- hak/keytar/build.ts | 14 +++----------- hak/keytar/check.ts | 14 +++----------- hak/matrix-seshat/build.ts | 16 ++++------------ hak/matrix-seshat/check.ts | 16 ++++------------ playwright.config.ts | 14 +++----------- playwright/e2e/launch/launch.spec.ts | 16 ++++------------ playwright/element-desktop-test.ts | 14 +++----------- scripts/@types/node-pre-gyp.d.ts | 15 +++------------ scripts/hak/build.ts | 14 +++----------- scripts/hak/check.ts | 14 +++----------- scripts/hak/clean.ts | 14 +++----------- scripts/hak/copy.ts | 16 ++++------------ scripts/hak/dep.ts | 14 +++----------- scripts/hak/fetch.ts | 14 +++----------- scripts/hak/fetchDeps.ts | 14 +++----------- scripts/hak/hakEnv.ts | 16 ++++------------ scripts/hak/index.ts | 16 ++++------------ scripts/hak/link.ts | 14 +++----------- scripts/hak/target.ts | 14 +++----------- src/@types/global.d.ts | 15 +++------------ src/@types/matrix-seshat.d.ts | 15 +++------------ src/displayMediaCallback.ts | 15 +++------------ src/electron-main.ts | 17 ++++------------- src/ipc.ts | 15 +++------------ src/keytar.ts | 15 +++------------ src/language-helper.ts | 15 +++------------ src/macos-titlebar.ts | 15 +++------------ src/media-auth.ts | 15 +++------------ src/preload.ts | 16 ++++------------ src/protocol.ts | 14 +++----------- src/seshat.ts | 15 +++------------ src/settings.ts | 15 +++------------ src/squirrelhooks.ts | 14 +++----------- src/tray.ts | 14 +++----------- src/updater.ts | 15 +++------------ src/utils.ts | 15 +++------------ src/vectormenu.ts | 14 +++----------- src/webcontents-handler.ts | 15 +++------------ 38 files changed, 122 insertions(+), 441 deletions(-) diff --git a/hak/keytar/build.ts b/hak/keytar/build.ts index 31df28bc3d..736ae220d1 100644 --- a/hak/keytar/build.ts +++ b/hak/keytar/build.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2020 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import path from "path"; diff --git a/hak/keytar/check.ts b/hak/keytar/check.ts index 98cffbf2c1..bada701a4a 100644 --- a/hak/keytar/check.ts +++ b/hak/keytar/check.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2020 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import childProcess from "child_process"; diff --git a/hak/matrix-seshat/build.ts b/hak/matrix-seshat/build.ts index a2a8bbb4d7..294b0f9dd5 100644 --- a/hak/matrix-seshat/build.ts +++ b/hak/matrix-seshat/build.ts @@ -1,17 +1,9 @@ /* -Copyright 2020-2021 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. +Copyright 2020, 2021 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import childProcess from "child_process"; diff --git a/hak/matrix-seshat/check.ts b/hak/matrix-seshat/check.ts index 90863d7a04..ca09a1f2c3 100644 --- a/hak/matrix-seshat/check.ts +++ b/hak/matrix-seshat/check.ts @@ -1,17 +1,9 @@ /* -Copyright 2020-2021 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. +Copyright 2020, 2021 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import childProcess from "child_process"; diff --git a/playwright.config.ts b/playwright.config.ts index 9da8b7e51b..6848f1dcf8 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2023 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { defineConfig } from "@playwright/test"; diff --git a/playwright/e2e/launch/launch.spec.ts b/playwright/e2e/launch/launch.spec.ts index 303314ace2..8083d8ba75 100644 --- a/playwright/e2e/launch/launch.spec.ts +++ b/playwright/e2e/launch/launch.spec.ts @@ -1,17 +1,9 @@ /* -Copyright 2022 - 2023 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. +Copyright 2022, 2023 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { test, expect } from "../../element-desktop-test"; diff --git a/playwright/element-desktop-test.ts b/playwright/element-desktop-test.ts index ec40cab25d..49d4e13697 100644 --- a/playwright/element-desktop-test.ts +++ b/playwright/element-desktop-test.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2023 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { _electron as electron, test as base, expect as baseExpect, type ElectronApplication } from "@playwright/test"; diff --git a/scripts/@types/node-pre-gyp.d.ts b/scripts/@types/node-pre-gyp.d.ts index 14a33d3fef..a3f9f94a41 100644 --- a/scripts/@types/node-pre-gyp.d.ts +++ b/scripts/@types/node-pre-gyp.d.ts @@ -1,17 +1,8 @@ /* -Copyright 2022 New Vector Ltd +Copyright 2022-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ declare module "@mapbox/node-pre-gyp/lib/util/versioning" { diff --git a/scripts/hak/build.ts b/scripts/hak/build.ts index e0a6e09969..6f60c94eeb 100644 --- a/scripts/hak/build.ts +++ b/scripts/hak/build.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2020 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { DependencyInfo } from "./dep"; diff --git a/scripts/hak/check.ts b/scripts/hak/check.ts index 047d5a9bc9..95ee3c20e4 100644 --- a/scripts/hak/check.ts +++ b/scripts/hak/check.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2020 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { DependencyInfo } from "./dep"; diff --git a/scripts/hak/clean.ts b/scripts/hak/clean.ts index e530894208..a6fd6f9197 100644 --- a/scripts/hak/clean.ts +++ b/scripts/hak/clean.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2020 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import path from "path"; diff --git a/scripts/hak/copy.ts b/scripts/hak/copy.ts index e6f882a56f..d09871b1bd 100644 --- a/scripts/hak/copy.ts +++ b/scripts/hak/copy.ts @@ -1,17 +1,9 @@ /* -Copyright 2020-2021 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. +Copyright 2020, 2021 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import path from "path"; diff --git a/scripts/hak/dep.ts b/scripts/hak/dep.ts index 47f05f1feb..a02b4256a0 100644 --- a/scripts/hak/dep.ts +++ b/scripts/hak/dep.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2021 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import HakEnv from "./hakEnv"; diff --git a/scripts/hak/fetch.ts b/scripts/hak/fetch.ts index fa3a80c947..2357c4daeb 100644 --- a/scripts/hak/fetch.ts +++ b/scripts/hak/fetch.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2020 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import fsProm from "fs/promises"; diff --git a/scripts/hak/fetchDeps.ts b/scripts/hak/fetchDeps.ts index 5fff691a85..e992aea80d 100644 --- a/scripts/hak/fetchDeps.ts +++ b/scripts/hak/fetchDeps.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2020 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { mkdirp } from "mkdirp"; diff --git a/scripts/hak/hakEnv.ts b/scripts/hak/hakEnv.ts index 0a5b11afc2..d57af3d893 100644 --- a/scripts/hak/hakEnv.ts +++ b/scripts/hak/hakEnv.ts @@ -1,17 +1,9 @@ /* -Copyright 2020-2021 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. +Copyright 2020, 2021 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import path from "path"; diff --git a/scripts/hak/index.ts b/scripts/hak/index.ts index 1d9100504a..1ee6c7d039 100644 --- a/scripts/hak/index.ts +++ b/scripts/hak/index.ts @@ -1,17 +1,9 @@ /* -Copyright 2020-2021 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. +Copyright 2020, 2021 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import path from "path"; diff --git a/scripts/hak/link.ts b/scripts/hak/link.ts index c2613a9b9c..f08423395b 100644 --- a/scripts/hak/link.ts +++ b/scripts/hak/link.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2020 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import path from "path"; diff --git a/scripts/hak/target.ts b/scripts/hak/target.ts index 81a47e7876..64c2a9a5bc 100644 --- a/scripts/hak/target.ts +++ b/scripts/hak/target.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2021 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { GLIBC, MUSL, familySync as processLibC } from "detect-libc"; diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 20dd96f5a7..44046925d7 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -1,17 +1,8 @@ /* -Copyright 2021 - 2022 New Vector Ltd +Copyright 2021-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { BrowserWindow } from "electron"; diff --git a/src/@types/matrix-seshat.d.ts b/src/@types/matrix-seshat.d.ts index 66dbd996c6..6892602343 100644 --- a/src/@types/matrix-seshat.d.ts +++ b/src/@types/matrix-seshat.d.ts @@ -1,17 +1,8 @@ /* -Copyright 2022 New Vector Ltd +Copyright 2022-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ declare module "matrix-seshat" { diff --git a/src/displayMediaCallback.ts b/src/displayMediaCallback.ts index be96340ced..a0bbeaf0b6 100644 --- a/src/displayMediaCallback.ts +++ b/src/displayMediaCallback.ts @@ -1,17 +1,8 @@ /* -Copyright 2023 New Vector Ltd +Copyright 2023, 2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { Streams } from "electron"; diff --git a/src/electron-main.ts b/src/electron-main.ts index 450bc6163a..febd87b4a1 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -1,20 +1,11 @@ /* +Copyright 2018-2024 New Vector Ltd. +Copyright 2017-2019 Michael Telatynski <7t3chguy@gmail.com> Copyright 2016 Aviral Dasgupta Copyright 2016 OpenMarket Ltd -Copyright 2017, 2019 Michael Telatynski <7t3chguy@gmail.com> -Copyright 2018 - 2021 New Vector Ltd -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ // Squirrel on windows starts the app with various flags as hooks to tell us when we've been installed/uninstalled etc. diff --git a/src/ipc.ts b/src/ipc.ts index dd01abb0ab..0c80d24665 100644 --- a/src/ipc.ts +++ b/src/ipc.ts @@ -1,17 +1,8 @@ /* -Copyright 2022 New Vector Ltd +Copyright 2022-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { app, autoUpdater, desktopCapturer, ipcMain, powerSaveBlocker, TouchBar, nativeImage } from "electron"; diff --git a/src/keytar.ts b/src/keytar.ts index 7138032231..94f8ec1342 100644 --- a/src/keytar.ts +++ b/src/keytar.ts @@ -1,17 +1,8 @@ /* -Copyright 2022 New Vector Ltd +Copyright 2022-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import type * as Keytar from "keytar"; // Hak dependency type diff --git a/src/language-helper.ts b/src/language-helper.ts index 8d1df7cf30..88564dbaf1 100644 --- a/src/language-helper.ts +++ b/src/language-helper.ts @@ -1,17 +1,8 @@ /* -Copyright 2021 New Vector Ltd +Copyright 2021-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import counterpart from "counterpart"; diff --git a/src/macos-titlebar.ts b/src/macos-titlebar.ts index 833c38df49..ec94f315f6 100644 --- a/src/macos-titlebar.ts +++ b/src/macos-titlebar.ts @@ -1,17 +1,8 @@ /* -Copyright 2023 New Vector Ltd +Copyright 2023, 2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { BrowserWindow } from "electron"; diff --git a/src/media-auth.ts b/src/media-auth.ts index de6601cf36..4560a92efc 100644 --- a/src/media-auth.ts +++ b/src/media-auth.ts @@ -1,17 +1,8 @@ /* -Copyright 2024 New Vector Ltd +Copyright 2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { BrowserWindow, ipcMain, session } from "electron"; diff --git a/src/preload.ts b/src/preload.ts index eaefc413a4..398f94422b 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -1,17 +1,9 @@ /* -Copyright 2018, 2019, 2021 New Vector Ltd +Copyright 2024 New Vector Ltd. +Copyright 2018, 2019 , 2021 New Vector Ltd -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { ipcRenderer, contextBridge, IpcRendererEvent } from "electron"; diff --git a/src/protocol.ts b/src/protocol.ts index f0551c5753..d6e28c61d6 100644 --- a/src/protocol.ts +++ b/src/protocol.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2020 The Matrix.org Foundation C.I.C. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { app } from "electron"; diff --git a/src/seshat.ts b/src/seshat.ts index 9ae970c164..63fb6dcef4 100644 --- a/src/seshat.ts +++ b/src/seshat.ts @@ -1,17 +1,8 @@ /* -Copyright 2022 New Vector Ltd +Copyright 2022-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { app, ipcMain } from "electron"; diff --git a/src/settings.ts b/src/settings.ts index 5638cca865..50e3a087d6 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,17 +1,8 @@ /* -Copyright 2022 New Vector Ltd +Copyright 2022-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import * as tray from "./tray"; diff --git a/src/squirrelhooks.ts b/src/squirrelhooks.ts index 913bda03b8..ae84e645b2 100644 --- a/src/squirrelhooks.ts +++ b/src/squirrelhooks.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2017 OpenMarket Ltd -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import path from "path"; diff --git a/src/tray.ts b/src/tray.ts index 171397aff3..339ca833d8 100644 --- a/src/tray.ts +++ b/src/tray.ts @@ -1,18 +1,10 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2017 Karl Glatz Copyright 2017 OpenMarket Ltd -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { app, Tray, Menu, nativeImage } from "electron"; diff --git a/src/updater.ts b/src/updater.ts index 77fe997f24..a731522d33 100644 --- a/src/updater.ts +++ b/src/updater.ts @@ -1,17 +1,8 @@ /* -Copyright 2016-2021 New Vector Ltd +Copyright 2016-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { app, autoUpdater, ipcMain } from "electron"; diff --git a/src/utils.ts b/src/utils.ts index 2aab292840..21fffeb6b1 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,17 +1,8 @@ /* -Copyright 2022 New Vector Ltd +Copyright 2022-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import crypto from "crypto"; diff --git a/src/vectormenu.ts b/src/vectormenu.ts index 33f50996c6..09ab24f7b1 100644 --- a/src/vectormenu.ts +++ b/src/vectormenu.ts @@ -1,17 +1,9 @@ /* +Copyright 2024 New Vector Ltd. Copyright 2016 OpenMarket Ltd -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import { app, shell, Menu, MenuItem, MenuItemConstructorOptions } from "electron"; diff --git a/src/webcontents-handler.ts b/src/webcontents-handler.ts index 0b3bb12338..d5773edda9 100644 --- a/src/webcontents-handler.ts +++ b/src/webcontents-handler.ts @@ -1,17 +1,8 @@ /* -Copyright 2021 New Vector Ltd +Copyright 2021-2024 New Vector Ltd. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE files in the repository root for full details. */ import {