50d0c1eb29
* Clean up a few things in various setup function * Add Launchpad-related setting to Debian build function * Add signature feature to package builder and fix error in debian/copyright * Update documentation * Update README
30 lines
705 B
Bash
Executable File
30 lines
705 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ ! -f setup.py ]; then
|
|
echo "Must be called from the root folder of the source"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo " Building Packages"
|
|
echo "================================================================================"
|
|
echo ""
|
|
python3 setup.py sdist bdist_wheel
|
|
mkdir -pv dist_upload
|
|
cp -v dist/novelWriter-*.whl dist_upload/
|
|
|
|
echo ""
|
|
echo " Checking Packages"
|
|
echo "================================================================================"
|
|
echo ""
|
|
twine check dist/*
|
|
|
|
echo ""
|
|
echo " Done!"
|
|
echo "================================================================================"
|
|
echo ""
|
|
echo " To upload packages to PyPi, run:"
|
|
echo " twine upload Source/dist/*"
|
|
echo ""
|