serge-rgb / milton

An infinite-canvas paint program
GNU General Public License v3.0
1.53k stars 133 forks source link

Add command line build-and-run script #146

Closed gonutz closed 5 years ago

gonutz commented 5 years ago

My workflow is to edit code with a text editor and then compile and run Milton from the command line. These are the tools I use for it. I think this might be helpful for other users as well. You did not put your Visual Studio solution (if you have one) into the repo. I had to figure out how to build and run things on my own and others who are new to your code-base might have the same problem. This could be helpful.

The link (.lnk) to Visual Studio 2019's default location of the x64 dev cmd should work on other PCs as well, as long as VS19 is installed in its default directory.

The run.bat script will build and run Milton, stopping on compile errors and printing Milton's stdout output after running it. This makes it easy to use printf-debugging.

serge-rgb commented 5 years ago

I appreciate the change but I'm not merging this one in. I'd like to have as few scripts as possible, there are already too many. I don't think build+run warrants a script

gonutz commented 5 years ago

Alright that is a good approach, I agree with the sentiment of not having too many scripts and build configurations for all IDEs in existance today :-)