Skip to content

Commit bab9e8d

Browse files
committed
fix deb copyright
1 parent 0d30574 commit bab9e8d

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Build deb
4343
run: |
44-
go tool task build-deb:arduino-app-cli VERSION=${TAG_VERSION} ARCH=${{ matrix.arch }} RELEASE="true"
44+
go tool task build-deb VERSION=${TAG_VERSION} ARCH=${{ matrix.arch }} RELEASE="true"
4545
4646
- name: Create Github Release and upload artifacts
4747
uses: ncipollo/release-action@v1

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ build/
3333

3434
/arduino-app-cli
3535
/apps
36-
# temporary staging directories
36+
37+
# debian packaging files
3738
/debian/arduino-app-cli/home/arduino/.local/share/arduino-app-cli/examples
39+
/debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright

Taskfile.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ tasks:
9797
cmds:
9898
- python3 -m http.server 8000 -d docs
9999

100-
build-deb:arduino-app-cli:
100+
build-deb:
101101
desc: Build debian package
102102
deps:
103103
- build-deb:clone-examples
@@ -127,6 +127,25 @@ tasks:
127127
build-deb:copyright:
128128
desc: Add dependency licenses to debian copyright file
129129
cmds:
130+
- mkdir -p debian/arduino-app-cli/usr/share/doc/arduino-app-cli
131+
- |
132+
cat > debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright <<EOF
133+
Copyright 2025 ARDUINO SA (http://www.arduino.cc/)
134+
135+
This software is released under the GNU General Public License version 3,
136+
which covers the main part of arduino-app-cli.
137+
The terms of this license can be found at:
138+
https://www.gnu.org/licenses/gpl-3.0.en.html
139+
140+
You can be released from the requirements of the above licenses by purchasing
141+
a commercial license. Buying such a license is mandatory if you want to
142+
modify or otherwise use the software for commercial activities involving the
143+
Arduino software without disclosing the source code of your own applications.
144+
To purchase a commercial license, send an email to license@arduino.cc.
145+
146+
---
147+
148+
EOF
130149
- cat .licenses/arduino-app-cli/NOTICE >> debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright
131150

132151
arduino-app-cli:build:local:
@@ -178,7 +197,7 @@ tasks:
178197
interactive: true
179198
cmds:
180199
- rm ./build/*.deb || true
181-
- task: build-deb:arduino-app-cli
200+
- task: build-deb
182201
- adb shell rm /tmp/*.deb || true
183202
- adb push ./build/arduino-app-cli_*_arm64.deb /tmp/
184203
- ./scripts/run-remote-sudo.sh "dpkg -i /tmp/arduino-app-cli*_arm64.deb && needrestart -r a"

debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)