I did some searching for this but didn’t find anything. What I would like to do is in my PostBuild script on Mac OS X, send a command into VMWare Fusion for something to start. For example, I’d like for the post build script to send the command into the Windows VM to run InnoSetup, change a property (build number) and compile it.
Right now I have to do that manually in Windows. Would love to automate it. Anyone have any ideas?
If I have to build it, I will, but I’m looking for existing solutions, if possible.
You can also visit http://fwroller.com/vmclipboard/ and use the OS X build of vmCLIpboard to generate the VMware VIX API commands you need to “Start” the Windows VM, “CopyFileFromHostToGuest” and “RunProgramInGuest”. The latter is for launching InnoSetup with the appropriate command line parameters. “RunScriptInGuest” may also be of use depending on how much automation you seek.
vmCLIpboard and vmProcessStrobe were designed primarily for vSphere admins of many VMs but they can also be useful for developers like yourself with just a dozen or so VMs that want to build, deploy, test and monitor their apps in different OS environments. The core functionality is free which will let you build the commands you need, copy them to the clipboard, from which they can be pasted into scripts, and then watch the action in your VMs.
The vmClipboard was the final piece of the solution!
My build script builds the Mac app, puts necessary files into resources bundle, adds the necessary Framework files, set up Sparkle (if selected) in the Plist file, send it to AppWrapper to get codesigned and then put it into disk image.
On the Windows side (built from the Mac) it creates an Inno Setup script, copies it into a shared directory (with VMWare), then using the VMWare commands, starts the Inno Setup script to codesign and create the installer/uninstaller.
All with one click! Loads better than doing everything manually. It turns a 30 minute process into a 3 minute operation while I go get a drink.