File tree 1 file changed +19
-10
lines changed
1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -259,15 +259,24 @@ tasks.register("deployToProcessingSketchbook") {
259
259
doFirst {
260
260
println (" Copy to sketchbook $sketchbookLocation ..." )
261
261
}
262
- val installDirectory = " $sketchbookLocation /libraries/$libName "
263
- copy {
264
- from(releaseDirectory)
265
- include(" library.properties" ,
266
- " examples/**" ,
267
- " library/**" ,
268
- " reference/**" ,
269
- " src/**"
270
- )
271
- into(installDirectory)
262
+
263
+ doLast {
264
+ val installDirectory = file(" $sketchbookLocation /libraries/$libName " )
265
+
266
+ println (" Removing old install from: $installDirectory " )
267
+ delete(installDirectory)
268
+
269
+ println (" Copying fresh build to sketchbook $sketchbookLocation ..." )
270
+ copy {
271
+ from(releaseDirectory)
272
+ include(
273
+ " library.properties" ,
274
+ " examples/**" ,
275
+ " library/**" ,
276
+ " reference/**" ,
277
+ " src/**"
278
+ )
279
+ into(installDirectory)
280
+ }
272
281
}
273
282
}
You can’t perform that action at this time.
0 commit comments