mraa: update to API version 0.6.0
[contrib/mraa.git] / docs / npm.md
index 49e75c1..9ba4897 100644 (file)
@@ -15,13 +15,17 @@ we have generated for you.
 Recreating tarball
 ------------------
 
-From a checkout of mraa you can do the following to 'generate' this tarball
+You can run the following commands to 'generate' this tarball from a checkout
+of mraa.  It's important to not leave a .git directory as npm will then
+consider the tarball contains a full git tree. You also you need a top level
+dir which matches the npm pkg name so we create one with a symlink and add the
+'h' flag to tar to follow symlinks.
 
 ~~~~~~~~~~~~~{.sh}
 mkdir build
 cd build
 cmake -DBUILDSWIGNODE=ON  ..
 make npmpkg
-cd ../
-tar czv --exclude='build/*' --exclude='.git/*' -f /tmp/mraa.tar.gz .
+ln -s ../ mraa
+tar hczv --exclude='build*' --exclude='.gitignore' --exclude='.git' --exclude='build*/*' --exclude='.git/*' -f mraa.tar.gz mraa
 ~~~~~~~~~~~~~