Fix git commit hash details for pip build. #7623
Skip regression folder when creating pip builds to reduce bundle size.pull/7704/head
parent
1eb07608e9
commit
01cb1839f8
|
@ -48,7 +48,7 @@ mkdir pip-build/pgadmin4/docs
|
|||
|
||||
# Build the clean tree
|
||||
cd web || exit
|
||||
for FILE in $(git ls-files)
|
||||
for FILE in $(git ls-files|grep -v regression)
|
||||
do
|
||||
echo Adding "${FILE}"
|
||||
# We use tar here to preserve the path, as Mac (for example) doesn't support cp --parents
|
||||
|
@ -56,12 +56,13 @@ do
|
|||
tar cf - "${FILE}" | (cd ../pip-build/pgadmin4; tar xf -)
|
||||
done
|
||||
|
||||
# Copy the commit_hash file, it doesn't show up in git ls-files
|
||||
tar cf - "commit_hash" | (cd ../pip-build/pgadmin4; tar xf -)
|
||||
|
||||
yarn install
|
||||
yarn run bundle
|
||||
|
||||
# Copy the commit_hash file, it doesn't show up in git ls-files
|
||||
echo Adding "commit_hash"
|
||||
tar cf - "commit_hash" | (cd ../pip-build/pgadmin4; tar xf -)
|
||||
|
||||
for FILE in pgadmin/static/js/generated/*
|
||||
do
|
||||
echo Adding "${FILE}"
|
||||
|
|
|
@ -73,6 +73,7 @@ do
|
|||
done
|
||||
|
||||
# Copy the commit_hash file, it doesn't show up in git ls-files
|
||||
echo Adding "web/commit_hash"
|
||||
tar cf - "web/commit_hash" | (cd "src-build/${TARBALL_NAME}"; tar xf -)
|
||||
|
||||
# Create the tarball
|
||||
|
|
Loading…
Reference in New Issue