Skip to content

Commit

Permalink
Merge pull request appjs#264 from silasb/fix-for-mac-package
Browse files Browse the repository at this point in the history
NODE_PATH was not exported so after execing the application we lose the variable
  • Loading branch information
milani committed Dec 6, 2012
2 parents ff676d9 + b13501a commit 26c51de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/mac/AppBundle.skel.app/Contents/MacOS/appjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ function realpath_f () {(cd "$1" && echo "$(pwd -P)")}
basedir="$( realpath_f `dirname ${0}` )";
basedir="$( dirname ${basedir} )";

NODE_PATH="${basedir}/MacOS/node_modules";
export NODE_PATH="${basedir}/MacOS/node_modules";
exec $basedir/MacOS/bin/node --harmony $basedir/Resources/app.js;

0 comments on commit 26c51de

Please sign in to comment.