scripts: update naming and remove unused

This commit is contained in:
alfrix 2022-11-18 13:38:20 -03:00
parent 6cb18816e2
commit 92e899cf56
5 changed files with 1 additions and 31 deletions

View File

@ -28,7 +28,7 @@ search "how to enable android debugging on device-model-and-brand"
```bash
cd ~/KlipperScreen/scripts
cp android-adb.sh launch_KlipperScreen.sh
cp sample-android-adb.sh launch_KlipperScreen.sh
chmod +x launch_KlipperScreen.sh
```

View File

@ -1,13 +0,0 @@
#!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
IMGDIR=$SCRIPTPATH/../docs/img
for file in $IMGDIR/*
do
res=$(identify $file | cut -d ' ' -f 3)
if [ "$res" != "1532x898" ]; then
echo "Converting $file"
convert $file -crop 1532x898+2+48 $file
fi
done

View File

@ -1,17 +0,0 @@
#!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
KSPATH=$(sed 's/\/scripts//g' <<< $SCRIPTPATH)
KSENV="${HOME}/.KlipperScreen-env"
update_virtualenv()
{
echo "Creating virtual environment"
[ ! -d ${KSENV} ] && virtualenv -p /usr/bin/python3 ${KSENV}
${KSENV}/bin/pip install -r ${KSPATH}/scripts/KlipperScreen-requirements.txt
${KSENV}/bin/pip install --no-binary ":all" "vext.gi==0.7.4"
${KSENV}/bin/vext -e
}
update_virtualenv