2021-06-21 22:27:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-10-01 14:36:58 +00:00
|
|
|
python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \
|
2021-10-23 12:40:23 +00:00
|
|
|
--package logarithmplotter --copyright-file linux/debian/copyright --suite impish --depends3 "$(cat linux/debian/depends)" --section science \
|
|
|
|
--debian-version "ppa1" bdist_deb
|
2021-08-02 18:01:32 +00:00
|
|
|
|
|
|
|
# Flatpak building
|
|
|
|
FLATPAK_BUILDER=$(which flatpak-builder)
|
|
|
|
if [ -z $FLATPAK_BUILDER ]; then
|
|
|
|
echo "flatpak-builder not installed. Will not proceed to build flatpak."
|
|
|
|
else
|
|
|
|
cd linux/flatpak
|
|
|
|
flatpak-builder AppDir eu.ad5001.LogarithmPlotter.json --user --force-clean --install
|
|
|
|
cd ../../
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Snapcraft building
|
|
|
|
SNAPCRAFT=$(which snapcraft)
|
|
|
|
if [ -z $SNAPCRAFT ]; then
|
|
|
|
echo "snapcraft not installed. Will not proceed to build snap"
|
|
|
|
else
|
|
|
|
snapcraft
|
|
|
|
fi
|