1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import qbs import qbs.File Product { type: "removal" Rule { multiplex: true outputFileTags: "removal" prepare: { var cmd = new JavaScriptCommand(); cmd.silent = true; cmd.sourceCode = function() { File.remove(product.sourceDirectory + "/dir1"); }; return [cmd]; } } }