fix install and run

This commit is contained in:
Kyattsukuro 2026-03-19 22:41:44 +01:00
parent a4758e42f3
commit 38e535b781
2 changed files with 4 additions and 2 deletions

View File

@ -8,13 +8,14 @@ fi
mkdir -p $TARGET_DIR
git clone git@git.urmel.de:Kyattsukuro/fledermaus.git "$TARGET_DIR"
python -m venv $TARGET_DIR/.venv
cd $TARGET_DIR
source $TARGET_DIR/.venv/bin/activate
pip install -r $TARGET_DIR/requirements.txt
mkdir -p $HOME/.local/share/bin/
rm -r $HOME/.local/share/bin/fledermaus-formater > /dev/zero
ln -s $TARGET_DIR/run.sh ~/.local/share/bin/fledermaus-formater
ln -s $TARGET_DIR/run.sh $HOME/.local/share/bin/fledermaus-formater
if [[ ":$PATH:" != *":$HOME/.local/share/bin:"* ]]; then
echo 'export PATH="$HOME/.local/share/bin:$PATH"' >> ~/.bashrc

3
run.sh
View File

@ -3,4 +3,5 @@
SCRIPT_DIR="$HOME/.config/fledermaus-formatter"
cd $SCRIPT_DIR
python __init__.py $@
source $SCRIPT_DIR/.venv/bin/activate
$SCRIPT_DIR/.venv/bin/python __init__.py $@