2021-06-21 22:27:40 +00:00
|
|
|
#!/bin/bash
|
2022-01-26 18:48:46 +00:00
|
|
|
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
|
2021-06-21 22:27:40 +00:00
|
|
|
|
2022-01-24 15:16:58 +00:00
|
|
|
# Building translations
|
2022-01-20 17:19:36 +00:00
|
|
|
cd "LogarithmPlotter/i18n/"
|
|
|
|
bash release.sh
|
|
|
|
cd ../../
|
|
|
|
|
|
|
|
# Deb
|
2022-01-26 11:02:10 +00:00
|
|
|
sudo python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \
|
2024-09-17 19:44:23 +00:00
|
|
|
--package logarithmplotter --copyright-file linux/debian/copyright --suite noble --depends3 "$(cat linux/debian/depends)" --section science \
|
2022-01-24 18:03:40 +00:00
|
|
|
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
|
2022-10-28 15:38:41 +00:00
|
|
|
cd linux
|
|
|
|
git clone https://github.com/Ad5001/eu.ad5001.LogarithmPlotter
|
|
|
|
cd eu.ad5001.LogarithmPlotter
|
2021-08-02 18:01:32 +00:00
|
|
|
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
|