Hi, I have some files installed by qbs this way, inside a group of file:
qbs.install:true qbs.installDir:project.binInstall But if files are removed from the group later on, they remains installed, they are not cleaned. I'd like to add a rule to clean those directories but didn't succeeded. Here's my trial, the rule is executed, but the files not removed... Product{ name:"Cleaninstall" type:["install"] Rule{ multiplex:true alwaysRun:true Artifact{ fileTags:["install"] } prepare:{ varcmd=newJavaScriptCommand(); cmd.binInstall=project.binInstall+"/" cmd.pluginInstall=project.pluginInstall+"/" cmd.sourceCode=function(){ console.info("removing:"+binInstall); File.remove(binInstall) File.remove(pluginInstall) } cmd.description="Cleanbinandplugindirectories" returncmd; } } } Thanks Stéphane
_______________________________________________ QBS mailing list QBS@qt-project.org http://lists.qt-project.org/mailman/listinfo/qbs