Ensure dependencies are packaged in the tarball

This commit is contained in:
Dave Page 2017-07-11 09:12:09 +01:00
parent 2bfe640a08
commit 6ad4a623c4

View File

@ -69,20 +69,19 @@ do
tar cf - $FILE | (cd src-build/$TARBALL_NAME; tar xf -)
done
pushd web
yarn install
yarn run bundle
cd src-build/$TARBALL_NAME/web
yarn install
yarn run bundle
for FILE in `ls -d pgAdmin/static/js/generated/*`
do
echo Adding $FILE
tar cf - $FILE | (cd ../src-build/$TARBALL_NAME/web; tar xf -)
done
popd
for FILE in `ls -d pgAdmin/static/js/generated/*`
do
echo Adding $FILE
tar cf - $FILE | (cd ../src-build/$TARBALL_NAME/web; tar xf -)
done
# Create the tarball
echo Creating tarball...
cd src-build
cd ../..
tar zcvf ../dist/$TARBALL_NAME.tar.gz $TARBALL_NAME
cd ..