Skip to content
Permalink
Browse files

fix(Build): Fix the compression and extraction of dependencies

  • Loading branch information...
nokome committed Jun 10, 2019
1 parent fcc7e1d commit 2bc5085be90f94fcb841303d6a85213c37647119
Showing with 14 additions and 10 deletions.
  1. +2 −1 .gitignore
  2. +11 −9 build-tgz.sh
  3. +1 −0 src/boot.ts
@@ -1,5 +1,6 @@
.DS_Store
stencila-deps.tgz
/stencila-deps
/stencila-deps.tgz
/bin
/coverage
/dist
@@ -4,14 +4,16 @@ set -e

ARCHIVE_NAME=stencila-deps.tgz

mkdir -p archive-source/node_modules/puppeteer/
mkdir -p stencila-deps
cp -R node_modules/@stencila/encoda/src stencila-deps/
cp -R node_modules/@stencila/encoda/vendor stencila-deps/

cp -R node_modules/@stencila/encoda/src archive-source/
cp -R node_modules/@stencila/encoda/vendor archive-source/
cp -R node_modules/puppeteer/.local-chromium archive-source/node_modules/puppeteer/
mkdir -p stencila-deps/node_modules/puppeteer/
cp -R node_modules/puppeteer/.local-chromium stencila-deps/node_modules/puppeteer/

cd archive-source
tar czf ${ARCHIVE_NAME} src *
cd ..
mv archive-source/${ARCHIVE_NAME} .
rm -r archive-source
mkdir -p stencila-deps/node_modules/opn
cp -R node_modules/opn/xdg-open stencila-deps/node_modules/opn/

tar czf ${ARCHIVE_NAME} stencila-deps

rm -r stencila-deps
@@ -47,6 +47,7 @@ export function extractDeps(forceExtract: boolean = false) {
tar.x({
sync: true,
file: path.join('/', 'snapshot', 'stencila', 'stencila-deps.tgz'),
strip: 1,
C: home
})

0 comments on commit 2bc5085

Please sign in to comment.
You can’t perform that action at this time.