arigram/do
Ari Archer da1f963d60
AAAAAAAA
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2023-10-26 20:58:58 +03:00

57 lines
896 B
Bash
Executable file

#!/usr/bin/env bash
set -xe
main() {
SRC="$(dirname "$0")"
cd "$SRC"
ARG=${1:-""}
case $ARG in
push)
isort arigram/*.py
black arigram/
python3 -m poetry check
python3 -m poetry lock
$0 check
$0 local
git diff >/tmp/arigram.diff
git add -A
git commit -sa
git push -u origin main
;;
local)
python3 -m pip install --user --no-cache --upgrade . --break-system-packages
;;
upgrade)
git reset --hard
git pull
$0 local
;;
check)
black arigram/
isort arigram/*.py
chmod u+rx ./check.sh
./check.sh
;;
entry)
mkdir -p /usr/share/applications
cp -i arigram.desktop /usr/share/applications
;;
*)
python3 -m arigram
;;
esac
}
main "$@"