Postbuild Script in VSCode IDE

Hi,

I am using NRF Connect SDK 1.7.0 in VS Code. It works great, thanks for the good work! I have a small question. I wish to run a little script to deploy some files after build. In SEGGER IDE it was easy and defined as "post build script". Is the same with VS Code possible and is there a sample config?

Thanks and best regards

Daniel

Parents
  • Hi,

    I relayed your question to the developers and this was their response:

    "From the top menu bar, go to "Terminal" -> "Run Task..." -> "nrf-connect-build" -> find the right task -> click the little cogwheel icon on the right, as described here. This task can be configured like any other VS Code build task, and they can add dependencies on other tasks and similar things as described here. There's no option to bind the "build" button to a custom task yet, though, they'll need to use the VS Code task runner interface for this."

    You need to create a build configuration for its task to appear.

  • Okay nice, this helps. It works also so far but it would be nice to map it to the button of course. I helped me out with a plugin named "code runner" to run my special task. In my case I want to upload the build image to memfault for error tracking after build.

    best regards

    daniel

Reply Children
Related