Skip to content

Commit a128f55

Browse files
authored
Fix(taskfile): the app:build creates subfolders (#39)
* fix: update app:build task to ensure proper directory cleanup and file copying * fix: update app:build task to ensure proper cleanup and include certs directory
1 parent ca849b2 commit a128f55

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Taskfile.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ tasks:
3939
app:build:
4040
desc: "Copy app files (python, assets, app.yaml) to a build directory"
4141
cmds:
42+
- rm -rf build/scratch-arduino-app/
4243
- mkdir -p build/scratch-arduino-app
4344
- cp ./app.yaml build/scratch-arduino-app/app.yaml
44-
- cp -r ./sketch/ build/scratch-arduino-app/sketch
45-
- cp -r ./python/ build/scratch-arduino-app/python
45+
- cp -r ./sketch build/scratch-arduino-app/sketch
46+
- cp -r ./python build/scratch-arduino-app/python
47+
- cp -r ./certs build/scratch-arduino-app/certs
4648
- task scratch:build
4749
- mkdir -p build/scratch-arduino-app/assets
4850
- cp scratch-editor/packages/scratch-gui/build/index.html build/scratch-arduino-app/assets/index.html

0 commit comments

Comments
 (0)