flathub-infra / linux-store-frontend

A web application to browse and install applications present in Flatpak repositories. Powers https://www.flathub.org
Apache License 2.0
187 stars 50 forks source link

Specify licence in scripts #331

Open ghost opened 1 year ago

ghost commented 1 year ago

This project uses Apache-2.0 license, but the frontend provides minified JavaScript scripts that does not contain information about the licence. Can be done by adding following comment to scripts served by the app:

 <script>
// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache License, Version 2.0
[script is here]
// @license-end
</script>

This also works in external files.

More information: https://www.gnu.org/software/librejs/free-your-javascript.html