lucamezzalira / haxe-watchify

automatic build tool for your Haxe and OpenFL projects. It monitors the changes in your files and runs the build of your projects
https://www.npmjs.com/package/haxe-watchify
51 stars 4 forks source link

Neko/Windows/Flash SA player: Kill processes before each new build + Reopen them after each new build #11

Open sruloart opened 9 years ago

sruloart commented 9 years ago

Maybe with using this method: http://forum.thewindowsclub.com/windows-tips-tutorials-articles/29463-kill-processes-using-command-prompt-windows-7-8-a.html.

This way you can rebuild them and actually see the results (because they aren't being currently in use) :)

it might also circumvent the FlashDevelop whole "can't delete these files" on export/windows/cpp/neko issue, but maybe not.

lucamezzalira commented 9 years ago

I didn't know that windows needs a different parameter to close the process, my bad: http://stackoverflow.com/questions/10021373/what-is-the-windows-equivalent-of-process-onsigint-in-node-js

I'm going to test it tonight, hopefully tomorrow morning you'll wake up with a new version

sruloart commented 9 years ago

Not your fault, I blame Microsoft :)

lucamezzalira commented 9 years ago

eheheh that's the good of open source projects, everyday you learn something new :D

lucamezzalira commented 9 years ago

it should solved in the next release

sruloart commented 9 years ago

Cool, this would be a great release with all of these new features :D

lucamezzalira commented 9 years ago

please check if in the version 1.3.0 is fixed :+1:

sruloart commented 9 years ago

Yeah, I'm on Win10, and now these targets' windows don't open and don't close.

lucamezzalira commented 9 years ago

Ok I'll check it on win10, did you try to set the buildtype parameter as build and use the livereload to update the content?

sruloart commented 9 years ago

Yep.

{
  "build": {
    "program" : "openfl",
    "buildType" : "build", 
    "src" : "source",
    "monitor" : "web",
    "livereload" : "export",
    "platforms" : ["flash", "neko", "windows"]
  }
}