Sublime Forum

Run multiple command in a build system

#1

Would it be possible to run multiple cmd in a build system???
Or I need to make a bat file (under windows) to do that?

Also, can I call a plugin command in the “cmd” part of a build system?

0 Likes

'Multi-Step' Build Scripts
#2

Hi there!

Any luck with this one?

0 Likes

#3

Same problem here. Any news?

For example for WiX I need to run
“candle $file.wix”

and

“light $file_base_name.wixobj”

to get the msi built.

Currently I use the work-around with variants:

{
	"variants": 
	[
		{
			"name": "candle",
			"cmd": "candle $file -ext WixUtilExtension"
		},
		{
			"name": "light",
			"cmd": "light $file_base_name.wixobj -ext WixUIExtension -ext WixUtilExtension -ext WixNetFxExtension -cultures:de-de"
		}
	]
}
0 Likes

#4

why not just use "shell_cmd": "candle \"$file.wix\" && light \"$file_base_name.wixobj\"" like you would normally from a console, and the way it’s been done in the shipped packages for years?

0 Likes

#5

@kingkeith: good idea. Thanks.

My final solution:

{
	"working_dir": "${file_path}",
	"shell_cmd": "candle $file -ext WixUtilExtension && light $file_base_name.wixobj -ext WixUIExtension -ext WixUtilExtension -ext WixNetFxExtension -cultures:de-de"
}
0 Likes