Browse Source

Update create-package.sh

pull/1830/head
Hironsan 2 years ago
parent
commit
66bb80ed9b
1 changed files with 9 additions and 0 deletions
  1. 9
      tools/create-package.sh

9
tools/create-package.sh

@ -5,11 +5,20 @@ set -o nounset
mkdir -p backend/client
# Build frontend
cd frontend
export PUBLIC_PATH="/static/_nuxt/"
yarn install
yarn build
cp -r dist ../backend/client/
# Install backend dependencies and collect static files
cd ../backend
poetry install
poetry run task collectstatic
# Build Python package
cd ..
sed -e "s/, from = \"..\"//g" backend/pyproject.toml > pyproject.toml
poetry build
rm pyproject.toml
Loading…
Cancel
Save