From c1b4d7bbb496f8f219122e604ba2891132ce58c9 Mon Sep 17 00:00:00 2001 From: dido18 Date: Mon, 10 Nov 2025 21:15:30 +0100 Subject: [PATCH 1/2] fix: update app:build task to ensure proper directory cleanup and file copying --- Taskfile.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index f5db440..d29979c 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -40,9 +40,10 @@ tasks: desc: "Copy app files (python, assets, app.yaml) to a build directory" cmds: - mkdir -p build/scratch-arduino-app + - rm -rf build/scratch-arduino-app/sketch build/scratch-arduino-app/python - cp ./app.yaml build/scratch-arduino-app/app.yaml - - cp -r ./sketch/ build/scratch-arduino-app/sketch - - cp -r ./python/ build/scratch-arduino-app/python + - cp -r ./sketch build/scratch-arduino-app/sketch + - cp -r ./python build/scratch-arduino-app/python - task scratch:build - mkdir -p build/scratch-arduino-app/assets - cp scratch-editor/packages/scratch-gui/build/index.html build/scratch-arduino-app/assets/index.html From 61db188f0c67428fb27a5ffe14d533a5cb7d3b71 Mon Sep 17 00:00:00 2001 From: dido18 Date: Mon, 10 Nov 2025 22:30:05 +0100 Subject: [PATCH 2/2] fix: update app:build task to ensure proper cleanup and include certs directory --- Taskfile.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index d29979c..470e4ce 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -39,11 +39,12 @@ tasks: app:build: desc: "Copy app files (python, assets, app.yaml) to a build directory" cmds: + - rm -rf build/scratch-arduino-app/ - mkdir -p build/scratch-arduino-app - - rm -rf build/scratch-arduino-app/sketch build/scratch-arduino-app/python - cp ./app.yaml build/scratch-arduino-app/app.yaml - cp -r ./sketch build/scratch-arduino-app/sketch - cp -r ./python build/scratch-arduino-app/python + - cp -r ./certs build/scratch-arduino-app/certs - task scratch:build - mkdir -p build/scratch-arduino-app/assets - cp scratch-editor/packages/scratch-gui/build/index.html build/scratch-arduino-app/assets/index.html