Skip to content

Commit 3f266a6

Browse files
authored
chore: use different task for installing app-cli and router (#490)
1 parent 05abb6a commit 3f266a6

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Taskfile.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ tasks:
126126
vars:
127127
ARCH: '{{.ARCH | default "arm64"}}'
128128

129-
build-deb:router:
129+
build-deb:arduino-router:
130130
desc: Build debian package
131131
cmds:
132132
- docker build --build-arg BINARY_NAME=arduino-router --build-arg DEB_NAME=arduino-router --build-arg VERSION={{ .VERSION }} --build-arg ARCH={{ .ARCH }} --output=./build -f debian/Dockerfile .
@@ -137,7 +137,7 @@ tasks:
137137
desc: Build all debian packages
138138
deps:
139139
- build-deb:arduino-app-cli
140-
- build-deb:router
140+
- build-deb:arduino-router
141141

142142
arduino-app-cli:build:local:
143143
desc: "Build the arduino-app-cli locally"
@@ -188,14 +188,21 @@ tasks:
188188
- ./debian/imola/setup.sh
189189

190190
board:install-arduino-app-cli:
191-
desc: Install orchestrator
191+
desc: Install arduino-app-cli on the board
192192
cmds:
193193
- rm ./build/*.deb || true
194-
- task: build-deb
194+
- task: build-deb:arduino-app-cli
195195
- adb shell rm /tmp/*.deb || true
196196
- adb push ./build/arduino-app-cli_*_arm64.deb /tmp/
197-
- adb push ./build/arduino-router_*_arm64.deb /tmp/
198197
- adb shell dpkg -i /tmp/arduino-app-cli*_arm64.deb
198+
199+
board:install-router:
200+
desc: Install arduino-router on the board
201+
cmds:
202+
- rm ./build/*.deb || true
203+
- task: build-deb:arduino-router
204+
- adb shell rm /tmp/*.deb || true
205+
- adb push ./build/arduino-router_*_arm64.deb /tmp/
199206
- adb shell dpkg -i /tmp/arduino-router_*_arm64.deb
200207

201208
setup:examples:local:

0 commit comments

Comments
 (0)