fogleman / primitive

Reproducing images with geometric primitives.
https://primitive.lol/
MIT License
12.35k stars 608 forks source link

Mac app #48

Closed ghost closed 7 years ago

ghost commented 7 years ago

hi,

It's possible to create a Mac app that runs a go script ? How? Thanks a lot

fogleman commented 7 years ago

A couple of options:

  1. Build a regular Go binary, launch it via NSTask and communicate over stdin/stdout. https://developer.apple.com/reference/foundation/nstask

  2. Build a shared or static library and link to it. http://blog.ralch.com/tutorial/golang-sharing-libraries/