#!/bin/bash

set -e

mkdir -p stencila-deps

if [[ "$(uname)" == "Darwin" ]]; then
  CP="rsync -Ra"
else
  CP="cp --parent --recursive"
fi

$CP node_modules/@stencila/encoda/dist/codecs/pandoc/binary stencila-deps
$CP node_modules/@stencila/encoda/dist/codecs/pandoc/templates stencila-deps
$CP node_modules/puppeteer/.local-chromium stencila-deps
$CP node_modules/opn/xdg-open stencila-deps

tar czf stencila-deps.tgz stencila-deps
rm -r stencila-deps

#!/bin/bash

set -e

mkdir -p stencila-deps

if [[ "$(uname)" == "Darwin" ]]; then
  CP="rsync -R"
else
  CP="cp --parent --recursive"
fi

$CP node_modules/@stencila/encoda/dist/codecs/pandoc/binary stencila-deps
$CP node_modules/@stencila/encoda/dist/codecs/pandoc/templates stencila-deps
$CP node_modules/puppeteer/.local-chromium stencila-deps
$CP node_modules/opn/xdg-open stencila-deps

tar czf stencila-deps.tgz stencila-deps
rm -r stencila-deps

--- 
+++ 
@@ -5,7 +5,7 @@
 mkdir -p stencila-deps
 
 if [[ "$(uname)" == "Darwin" ]]; then
-  CP="rsync -R"
+  CP="rsync -Ra"
 else
   CP="cp --parent --recursive"
 fi
fix(Packaging): Fix to libary inclusion in macOS build
