managed to get some sleep for a change, woke up, slapped forehead....
if you dont save b4 compiling theres a file locking
issue sometimes
occasionally bmk will seg fault...
2 commandos 1 to compile, 1 to run
Thanks to Cower of the origanal commando!
Bmk.xml
BlitzRun.xml
if you dont save b4 compiling theres a file locking
issue sometimes
occasionally bmk will seg fault...
2 commandos 1 to compile, 1 to run
Thanks to Cower of the origanal commando!
Bmk.xml
<?xml version="1.0"?> <!DOCTYPE COMMANDO SYSTEM "commando.dtd"> <COMMANDO> <UI> <CAPTION LABEL="Blitzmax Compiler Commando"> <FILE_ENTRY LABEL="BMK Path" VARNAME="bmkPath" DEFAULT="C:\BlitzMax\bin\bmk.exe"/> <CHOICE LABEL="Compile Mode" VARNAME="output" DEFAULT="debug"> <OPTION LABEL="Debug" VALUE="debug"/> <OPTION LABEL="Release" VALUE="release"/> <OPTION LABEL="Both" VALUE="both"/> </CHOICE> <ENTRY LABEL="Switches" VARNAME="sw" DEFAULT="-v "/> <ENTRY LABEL="Output" VARNAME="outfile" DEFAULT="test.exe"/> </CAPTION> </UI> <COMMAND SHELL="System" CONFIRM="True"> buffer.save(view,null); buf = new StringBuffer(""); buf.append(bmkPath); buf.append(" makeapp "); if (output.equals("debug")){ buf.append("-d ");} if (output.equals("release")){ buf.append("-r ");} if (output.equals("both")){ buf.append("-a ");} buf.append(sw); buf.append(" -o "); buf.append(buffer.getDirectory()); buf.append(outfile); buf.append(" "); buf.append(buffer.getDirectory()); buf.append(buffer.getName()); buf; </COMMAND> </COMMANDO>
BlitzRun.xml
<?xml version="1.0"?> <!DOCTYPE COMMANDO SYSTEM "commando.dtd"> <COMMANDO> <UI> <CAPTION LABEL="Blitzmax runner Commando"> <ENTRY LABEL="Execute" VARNAME="outfile" DEFAULT="test.exe"/> </CAPTION> </UI> <COMMAND SHELL="System" CONFIRM="True"> buffer.save(view,null); buf = new StringBuffer(""); buf.append(buffer.getDirectory()); buf.append(outfile); buf; </COMMAND> </COMMANDO>