简体   繁体   中英

Package node.js in Cocoa/OSX app

OK, here's what:

  • I don't want to write an OSX app in node.js - the app is almost complete and 100% in Objective-C/Cocoa
  • I don't want to bridge Objective-C and node.js
  • I want to be able to execute a js/node.js script, regardless of whether the user has already pre-installed the node.js binary

So, is there any known way? What would you suggest?

I found a couple resources that look as though they have had success embedding node in a Mac App. I haven't tried them yet, but they look promising.

How to add NodeJS and node_modules to a Mac App

https://ind.ie/labs/blog/gracefully-running-node-as-an-nstask-in-cocoa/

看看zeit / pkg :将Node.js项目打包成可执行文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM