Fix pip package build script

This commit is contained in:
Veronica Berglyd Olsen
2025-04-20 23:07:40 +02:00
parent 0bb7017cf8
commit a4bb049eac
+9 -4
View File
@@ -9,7 +9,7 @@ if [ ! -f pkgutils.py ]; then
fi
echo ""
echo " Building Dependencies"
echo " Create Python Env"
echo "================================================================================"
echo ""
@@ -17,9 +17,13 @@ if [ ! -d $ENVPATH ]; then
python3 -m venv $ENVPATH
fi
source $ENVPATH/bin/activate
pip3 install -r requirements.txt -r docs/requirements.txt
pip3 install -U build twine -r requirements.txt -r docs/requirements.txt
echo ""
echo " Building Dependencies"
echo "================================================================================"
echo ""
python3 pkgutils.py build-assets
deactivate
echo ""
echo " Building Packages"
@@ -27,7 +31,7 @@ echo "==========================================================================
echo ""
python3 -m build
mkdir -pv dist_upload
cp -v dist/novelWriter-*.whl dist_upload/
cp -v dist/novelwriter-*.whl dist_upload/
cd dist_upload
FILE=$(ls -t | head -1)
shasum -a 256 $FILE | tee $FILE.sha256
@@ -38,6 +42,7 @@ echo " Checking Packages"
echo "================================================================================"
echo ""
twine check dist/*
deactivate
echo ""
echo " Done!"