2024-09-29 22:23:39 +00:00
|
|
|
#!/bin/bash
|
2024-09-29 22:54:30 +00:00
|
|
|
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." || exit 1
|
2024-09-29 22:23:39 +00:00
|
|
|
|
2024-10-01 19:50:10 +00:00
|
|
|
rebuild=true
|
|
|
|
|
|
|
|
while [ $# -gt 0 ]; do
|
|
|
|
case "$1" in
|
|
|
|
--no-rebuild)
|
|
|
|
rebuild=false
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
box "Error: Invalid argument."
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "$rebuild" == "true" ]; then
|
|
|
|
rm -rf build
|
|
|
|
bash scripts/build.sh
|
|
|
|
fi
|
|
|
|
|
2024-09-29 22:54:30 +00:00
|
|
|
cd build/runtime-pyside6 || exit 1
|
2024-09-29 22:23:39 +00:00
|
|
|
|
2024-09-29 22:54:30 +00:00
|
|
|
mkdir assets
|
|
|
|
cp -r ../../assets/{native,*.svg} assets/
|
|
|
|
cp ../../README.md .
|
|
|
|
|
2024-10-14 15:18:58 +00:00
|
|
|
# Build for noble
|
2024-09-29 22:54:30 +00:00
|
|
|
python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \
|
|
|
|
--package logarithmplotter --copyright-file assets/native/linux/debian/copyright \
|
2024-10-14 15:18:58 +00:00
|
|
|
--suite noble --depends3 "$(cat assets/native/linux/debian/depends.wheels)" --section science \
|
2024-09-29 22:23:39 +00:00
|
|
|
bdist_deb
|
2024-10-14 15:18:58 +00:00
|
|
|
|
|
|
|
mv deb_dist deb_dist.noble
|
|
|
|
|
|
|
|
# Build for oracular (different dependencies)
|
|
|
|
python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \
|
|
|
|
--package logarithmplotter --copyright-file assets/native/linux/debian/copyright \
|
|
|
|
--suite oracular --depends3 "$(cat assets/native/linux/debian/depends.packaged)" --section science \
|
|
|
|
bdist_deb
|
|
|
|
|
|
|
|
mv deb_dist deb_dist.oracular
|