Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you package CouchDB with a OS X Cocoa app?

I'm thinking about making a Cocoa app (desktop) that includes a CouchDB database. How would one go about packaging this in the application bundle so people can install it just like any other Mac OS X app?

like image 617
dan Avatar asked Jan 31 '11 21:01

dan


1 Answers

Our Mac distribution CouchDBX (http://www.couchone.com/get#mac) is a Cocoa application that bundles CouchDB. To that end, CouchDB and all its dependencies are compiled into a single folder inside the Resources folder of the application bundle. Getting the details of all that right is a bit tricky, so I wrote a script (yay me): https://github.com/janl/couchdbx-core

When run, in produces a folder you can drop into your Resources folder. See https://github.com/janl/couchdbx-app for how launch CouchDB from inside Cocoa.

like image 188
Jan Lehnardt Avatar answered Sep 18 '22 05:09

Jan Lehnardt