Run user script on a local machine before remote build
已回答
Hi!
I'm using a remote toolchain. Before executing a remote build, I'd like to run a local python script that performs some repo cleanup and rsyncs files to remote server (I don't use the built-in deploy mechanism because the repository is too large; the script knows to only sync files that've been changed since the last commit). My question is similar to this one, but in my case, CMake build is running at a remote host, while the script needs to run locally.
So, is there a way to do it?
If not, could you maybe help me setting up a hook with live plugin, because I have no idea where to start.
请先登录再写评论。
Hello!
You can try creating a local external tool (https://www.jetbrains.com/help/clion/configuring-third-party-tools.html#local-ext-tools) and using it.
I don't get it, how exactly do I run external tool before remote build? Note: I'm not interested in running external tool before launch, I need it before every build; I'm also not interested in running external tool when building locally, I need it only before remote builds.
There is no way to launch a local script automatically before each remote build. The only way I can think of is to call a local external tool manually before launching the build. You can add a shortcut for it.