Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run system command in Cake build?

Tags:

cakebuild

I couldn't find any information related with running custom system command on this site: cakebuild.net/dsl

How can I do it?


The real command I want to run is 'upx mproject.exe'

like image 794
user1633272 Avatar asked Mar 12 '17 09:03

user1633272


People also ask

What is cake EXE?

Cake (C# Make) is a free and open source cross-platform build automation system with a C# DSL for tasks such as compiling code, copying files and folders, running unit tests, compressing files and building NuGet packages.

What is cake deployment?

by Enrico Campidoglio. Cake (C# Make) is a cross-platform build automation system with a beautiful DSL and a rich ecosystem of tool integrations.


1 Answers

If I have understood you correctly, then what you are looking for is the Process Aliases that exist within Cake:

http://cakebuild.net/dsl/process/

These allow you to start any arbitrary process from within your Cake script.

Another option, would be to create a Cake Addin that wraps the tool that you are trying to execute.

like image 187
Gary Ewan Park Avatar answered Sep 22 '22 17:09

Gary Ewan Park