Created
March 7, 2012 01:40
-
-
Save jarek-foksa/1990337 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spawnCocoaProcess: -> | |
workingDirPath = process.argv[3] | |
execPath = workingDirPath + '/Type Fu' | |
env = process.env | |
env['DYLD_FRAMEWORK_PATH'] = workingDirPath + '/../Frameworks' | |
env['WEBKIT_UNSET_DYLD_FRAMEWORK_PATH'] = 'YES' | |
nodeProcess = process | |
cocoaProcess = spawn execPath, [client.port], | |
cwd: workingDirPath | |
env: env | |
setsid: false | |
cocoaProcess.stdout.on 'data', (data) => console.log '' + data | |
cocoaProcess.stderr.on 'data', (data) => console.log '' + data | |
cocoaProcess.on 'exit', (code) => nodeProcess.exit() | |
nodeProcess.on 'exit', (code) => cocoaProcess.exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment