Skip to content

Extract and extend license and copyright #2959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release-go-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: 3.x

- name: Build License
run: |
task update-deb-copyright

- name: Build
run: task dist:${{ matrix.env.os }}

Expand Down
17 changes: 17 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ includes:
dist: ./DistTasks.yml

tasks:
update-deb-copyright:
desc: Extract project and dependency licenses into debian copyright
cmds:
- |
if ! command -v licensed >/dev/null; then
echo "Installing Ruby gem: licensed"
gem install licensed
fi
- licensed notices
- mkdir -p debian/arduino-cli/usr/share/doc/arduino-cli/
- cat debian/arduino-cli/usr/share/doc/arduino-cli/copyright.txt > debian/arduino-cli/usr/share/doc/arduino-cli/copyright
- echo -e "\n\n---\n\n" >> debian/arduino-cli/usr/share/doc/arduino-cli/copyright
- cat .licenses/NOTICE.arduino-cli >> debian/arduino-cli/usr/share/doc/arduino-cli/copyright
sources:
- LICENSE.txt
- licenses/**

docs:generate:
desc: Create all generated documentation content
deps:
Expand Down
1 change: 0 additions & 1 deletion debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ ARG GO_BINARY

COPY ./debian/${DEB_NAME} /${DEB_NAME}/
COPY ./${GO_BINARY} /${DEB_NAME}/usr/bin/${BINARY_NAME}
COPY ./debian/${DEB_NAME}/DEBIAN/copyright /${DEB_NAME}/usr/share/doc/${DEB_NAME}/copyright

# Go application are tagged with `v` prefix, this remove the first v if present
RUN export VERSION=$(echo "${VERSION}" | sed -e "s/^v\(.*\)/\1/") && \
Expand Down
18 changes: 0 additions & 18 deletions debian/arduino-cli/DEBIAN/copyright

This file was deleted.

13 changes: 13 additions & 0 deletions debian/arduino-cli/usr/share/doc/arduino-cli/copyright.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2025 ARDUINO SA (http://www.arduino.cc/)

This software is released under the GNU General Public License version 3,
which covers the main part of arduino-app-cli.
The terms of this license can be found at:
https://www.gnu.org/licenses/gpl-3.0.en.html

You can be released from the requirements of the above licenses by purchasing
a commercial license. Buying such a license is mandatory if you want to
modify or otherwise use the software for commercial activities involving the
Arduino software without disclosing the source code of your own applications.
To purchase a commercial license, send an email to [email protected].

Loading