Change the way the export is created for the pypi package in order to transfer static files out of the tmp shell

This commit is contained in:
sabaimran 2024-08-05 22:46:54 +05:30
parent b17577c138
commit e9d6899fc2
2 changed files with 2 additions and 1 deletions

View file

@ -42,7 +42,7 @@ jobs:
- name: ⬇️ Install Web Client
run: |
yarn install
yarn ciexport
yarn pypiciexport
working-directory: src/interface/web
- name: ⚙️ Build Python Package

View file

@ -11,6 +11,7 @@
"cicollectstatic": "bash -c 'pushd ../../../ && python3 src/khoj/manage.py collectstatic --noinput && popd'",
"export": "yarn build && cp -r out/ ../../khoj/interface/built && yarn collectstatic",
"ciexport": "yarn build && cp -r out/ ../../khoj/interface/built && yarn cicollectstatic",
"pypiciexport": "yarn build && cp -r out/ /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/khoj/interface/built && yarn cicollectstatic",
"watch": "nodemon --watch . --ext js,jsx,ts,tsx,css --ignore 'out/**/*' --exec 'yarn export'",
"windowswatch": "nodemon --watch . --ext js,jsx,ts,tsx,css --ignore 'out/**/*' --exec 'yarn windowsexport'",
"windowscollectstatic": "cd ..\\..\\.. && .\\.venv\\Scripts\\Activate.bat && py .\\src\\khoj\\manage.py collectstatic --noinput && .\\.venv\\Scripts\\deactivate.bat && cd ..",