@@ -97,7 +97,17 @@ tasks:
9797 cmds :
9898 - python3 -m http.server 8000 -d docs
9999
100- clone-examples-repo :
100+ build-deb:arduino-app-cli :
101+ desc : Build debian package
102+ deps :
103+ - build-deb:clone-examples
104+ - build-deb:copyright
105+ cmds :
106+ - docker build --build-arg BINARY_NAME=arduino-app-cli --build-arg DEB_NAME=arduino-app-cli --build-arg VERSION={{ .VERSION }} --build-arg ARCH={{ .ARCH }} --build-arg RELEASE={{ .RELEASE }} --output=./build -f debian/Dockerfile .
107+ vars :
108+ ARCH : ' {{.ARCH | default "arm64"}}'
109+
110+ build-deb:clone-examples :
101111 desc : " Clones the examples repo directly into the debian structure"
102112 cmds :
103113 - |
@@ -114,14 +124,28 @@ tasks:
114124 echo "Examples successfully cloned."
115125 silent : false
116126
117- build-deb:arduino-app-cli :
118- desc : Build debian package
119- deps :
120- - clone-examples-repo
127+ build-deb:copyright :
128+ desc : Extract project and dependency licenses into asd copyright
121129 cmds :
122- - docker build --build-arg BINARY_NAME=arduino-app-cli --build-arg DEB_NAME=arduino-app-cli --build-arg VERSION={{ .VERSION }} --build-arg ARCH={{ .ARCH }} --build-arg RELEASE={{ .RELEASE }} --output=./build -f debian/Dockerfile .
123- vars :
124- ARCH : ' {{.ARCH | default "arm64"}}'
130+ - |
131+ cat > debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright <<EOF
132+ Copyright 2025 ARDUINO SA (http://www.arduino.cc/)
133+
134+ This software is released under the GNU General Public License version 3,
135+ which covers the main part of arduino-app-cli.
136+ The terms of this license can be found at:
137+ https://www.gnu.org/licenses/gpl-3.0.en.html
138+
139+ You can be released from the requirements of the above licenses by purchasing
140+ a commercial license. Buying such a license is mandatory if you want to
141+ modify or otherwise use the software for commercial activities involving the
142+ Arduino software without disclosing the source code of your own applications.
143+ To purchase a commercial license, send an email to license@arduino.cc.
144+
145+ ---
146+
147+ EOF
148+ cat .licenses/arduino-app-cli/NOTICE >> debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright
125149
126150 arduino-app-cli:build:local :
127151 desc : " Build the arduino-app-cli locally"
@@ -231,30 +255,6 @@ tasks:
231255 - cmd : sed -i '' "{{.sed_replacement}}" internal/orchestrator/config/config.go
232256 platforms : [darwin]
233257
234- update-deb-copyright :
235- desc : Extract project and dependency licenses into asd copyright
236- cmds :
237- - |
238- licensed notices
239- cat > debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright <<EOF
240- Copyright 2025 ARDUINO SA (http://www.arduino.cc/)
241-
242- This software is released under the GNU General Public License version 3,
243- which covers the main part of arduino-app-cli.
244- The terms of this license can be found at:
245- https://www.gnu.org/licenses/gpl-3.0.en.html
246-
247- You can be released from the requirements of the above licenses by purchasing
248- a commercial license. Buying such a license is mandatory if you want to
249- modify or otherwise use the software for commercial activities involving the
250- Arduino software without disclosing the source code of your own applications.
251- To purchase a commercial license, send an email to license@arduino.cc.
252-
253- ---
254-
255- EOF
256- cat .licenses/arduino-app-cli/NOTICE >> debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright
257-
258258 # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
259259 general:cache-dep-licenses :
260260 desc : Cache dependency license metadata
@@ -276,6 +276,8 @@ tasks:
276276 exit 1
277277 fi
278278 - licensed cache
279+ - licensed notices
280+
279281
280282 # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
281283 general:check-dep-licenses :
0 commit comments