Forgejo v9.0 is GPLv3+

* display Forgejo license first
* do not send go-license in a loop because Gitea & Forgejo have
  different licenses

Refs: 62ac0cc334/AGREEMENTS.md
This commit is contained in:
Twenty Panda 2024-07-25 11:03:36 +02:00 committed by Earl Warren
parent d30be160c9
commit 94631ccef6
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
9 changed files with 700 additions and 28 deletions

View file

@ -56,7 +56,7 @@ if (isProduction) {
const licenseText = (licenseFile && !licenseFile.toLowerCase().includes('readme')) ? readFileSync(licenseFile) : '[no license file]';
return {name: packageName, licenseName: licenses, body: formatLicenseText(licenseText)};
});
const modules = [...goModules, ...jsModules].sort((a, b) => a.name.localeCompare(b.name));
const modules = [...goModules, ...jsModules];
const licenseTxt = modules.map(({name, licenseName, body}) => {
const title = licenseName ? `${name} - ${licenseName}` : name;
return `${line}\n${title}\n${line}\n${body}`;