Skip to content

Commit 094ce4d

Browse files
license: add GPL-3.0 headers and use GPL-3.0-only SPDX
Align with the canonical GPL-3.0 application steps from choosealicense.com: - set package.json license to the non-deprecated SPDX identifier GPL-3.0-only - add the standard FSF GPL-3.0 boilerplate notice (copyright + free-software header) to all authored source files (main, preload, renderer, shared, configs, tests); shadcn/ui components and lib/utils keep their MIT origin - include the small HomeScreen formatting/reorder tweak left over from the ui-revamp session
1 parent 1a389fc commit 094ce4d

68 files changed

Lines changed: 1218 additions & 9 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,8 +1452,14 @@ component split, and functional wiring (UI/design-system migration only).
14521452
copyright notice (© 2026 Muhammad Hasnain Saeed). The full standard
14531453
worldwide GPL-3.0 text (FSF) is used verbatim, including the terms and
14541454
conditions (sections 0–17) and the "How to Apply These Terms" appendix.
1455-
- Added `"license": "GPL-3.0"` (SPDX) to `package.json` (it previously had no
1456-
license field).
1455+
- Added `"license": "GPL-3.0-only"` (non-deprecated SPDX identifier) to
1456+
`package.json` (it previously had no license field).
1457+
- Added the standard FSF GPL-3.0 boilerplate notice (program name, copyright,
1458+
and the "free software" header per the license's "How to Apply These Terms"
1459+
section) to the top of every authored source file (main, preload, renderer,
1460+
shared types, configs, and tests). Excluded the third-party-derived shadcn/ui
1461+
components (`src/renderer/components/ui/*`) and `src/renderer/lib/utils.ts`,
1462+
which are MIT-licensed shadcn source and keep their own origin.
14571463
- Updated README: license line in the docs/footer from "MIT License" to
14581464
"GNU General Public License v3.0", and added a GPLv3 license badge under the
14591465
title.

esbuild.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Urdu English Interpreter
3+
* Copyright (C) 2026 Muhammad Hasnain Saeed
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
const esbuild = require('esbuild');
220
const fs = require('fs');
321
const path = require('path');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Real-time Urdu-to-English voice interpreter for macOS meetings",
55
"main": "dist/main/index.js",
66
"private": true,
7-
"license": "GPL-3.0",
7+
"license": "GPL-3.0-only",
88
"scripts": {
99
"build": "node esbuild.config.js",
1010
"watch": "node esbuild.config.js --watch",

packages/shared/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Urdu English Interpreter
3+
* Copyright (C) 2026 Muhammad Hasnain Saeed
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
export interface TranslationResult {
220
originalText: string;
321
translatedText: string;

src/main/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Urdu English Interpreter
3+
* Copyright (C) 2026 Muhammad Hasnain Saeed
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
import * as dotenv from "dotenv";
220
import { app, BrowserWindow, ipcMain } from "electron";
321
import * as os from "os";

src/main/ipc/audio-output.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Urdu English Interpreter
3+
* Copyright (C) 2026 Muhammad Hasnain Saeed
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
import { ipcMain, BrowserWindow } from "electron";
220
import { AudioOutputManager, detectBlackHole } from "../services/audio-output/manager";
321

src/main/ipc/audio.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Urdu English Interpreter
3+
* Copyright (C) 2026 Muhammad Hasnain Saeed
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
import { ipcMain } from "electron";
220
import {
321
getMicrophonePermission,

src/main/ipc/session.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Urdu English Interpreter
3+
* Copyright (C) 2026 Muhammad Hasnain Saeed
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
import { ipcMain, BrowserWindow } from "electron";
220
import type { SessionEvent } from "@shared/index";
321
import { sessionManager } from "../services/session";

src/main/ipc/stt.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Urdu English Interpreter
3+
* Copyright (C) 2026 Muhammad Hasnain Saeed
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
import { ipcMain, BrowserWindow } from "electron";
220
import type { SttEvent } from "@shared/index";
321
import { sttSession } from "../services/stt/manager";

src/main/ipc/system.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Urdu English Interpreter
3+
* Copyright (C) 2026 Muhammad Hasnain Saeed
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
119
import { ipcMain, shell } from "electron";
220
import type { OpenExternalResult } from "@shared/index";
321
import { isAllowedOpenExternalUrl } from "@shared/index";

0 commit comments

Comments
 (0)