mirror of
https://github.com/janishutz/BiogasControllerApp.git
synced 2025-11-25 05:44:23 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b00466c5dd |
@@ -32,7 +32,7 @@
|
|||||||
on_release:
|
on_release:
|
||||||
root.quit()
|
root.quit()
|
||||||
Label:
|
Label:
|
||||||
text: "You are running version V3.0.0"
|
text: "You are running version V3.0.1"
|
||||||
font_size: 13
|
font_size: 13
|
||||||
pos_hint: {"y": -0.45, "x":0.05}
|
pos_hint: {"y": -0.45, "x":0.05}
|
||||||
Button:
|
Button:
|
||||||
|
|||||||
@@ -31,17 +31,19 @@ use_venv=""
|
|||||||
read -p "Install dependencies in a virtual environment? (Y/n) " use_venv
|
read -p "Install dependencies in a virtual environment? (Y/n) " use_venv
|
||||||
use_venv=$(echo "$use_venv" | tr '[:upper:]' '[:lower:]')
|
use_venv=$(echo "$use_venv" | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
echo "\n => Checking for repo..."
|
echo "
|
||||||
|
=> Checking for repo...
|
||||||
|
"
|
||||||
|
|
||||||
if [[ -f ./biogascontrollerapp.py ]]; then
|
if [[ -f ./biogascontrollerapp.py ]]; then
|
||||||
echo "\n -> Data found, not downloading"
|
echo " -> Data found, not downloading"
|
||||||
else
|
else
|
||||||
do_download=""
|
do_download=""
|
||||||
read -p " -> Data not found, okay to download? (Y/n) " do_download
|
read -p " -> Data not found, okay to download? (Y/n) " do_download
|
||||||
do_download=$(echo "$do_download" | tr '[:upper:]' '[:lower:]')
|
do_download=$(echo "$do_download" | tr '[:upper:]' '[:lower:]')
|
||||||
if [[ "$do_download" == "y" || "$do_download" == "" ]]; then
|
if [[ "$do_download" == "y" || "$do_download" == "" ]]; then
|
||||||
# Check if wget is installed
|
# Check if wget is installed
|
||||||
if [[ !command -v wget >/dev/null 2>&1 ]]; then
|
if !command -v wget >/dev/null 2>&1; then
|
||||||
echo "wget unavailable. Please install using your distribution's package manager or manually download the repo from GitHub releases"
|
echo "wget unavailable. Please install using your distribution's package manager or manually download the repo from GitHub releases"
|
||||||
echo 1
|
echo 1
|
||||||
fi
|
fi
|
||||||
@@ -53,9 +55,10 @@ else
|
|||||||
tar -xf ./biogascontrollerapp-linux.tar.gz
|
tar -xf ./biogascontrollerapp-linux.tar.gz
|
||||||
|
|
||||||
# Remove tarball (to keep it clean)
|
# Remove tarball (to keep it clean)
|
||||||
rm ./biogascontrollerapp.tar.gz
|
rm ./biogascontrollerapp-linux.tar.gz
|
||||||
|
mv dist biogascontrollerapp-linux
|
||||||
|
|
||||||
cd biogascontrollerapp/
|
cd biogascontrollerapp-linux/
|
||||||
else
|
else
|
||||||
echo "Please download the repo manually and execute the script inside the downloaded repo from GitHub releases"
|
echo "Please download the repo manually and execute the script inside the downloaded repo from GitHub releases"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -74,7 +77,7 @@ if [[ "$use_venv" == "y" || "$use_venv" == "" ]]; then
|
|||||||
source ./.venv/bin/activate
|
source ./.venv/bin/activate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ !command -v deactivate >/dev/null 2>&1 ]]; then
|
if !command -v deactivate >/dev/null 2>&1; then
|
||||||
echo "Virtual environment could not be activated.
|
echo "Virtual environment could not be activated.
|
||||||
You may install the dependencies by changing to the biogascontrollerapp directory and running
|
You may install the dependencies by changing to the biogascontrollerapp directory and running
|
||||||
pip install -r requirements.txt"
|
pip install -r requirements.txt"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ if [[ -f ./.venv/bin/activate ]]; then
|
|||||||
source ./.venv/bin/activate
|
source ./.venv/bin/activate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ !command -v deactivate >/dev/null 2>&1 ]]; then
|
if !command -v deactivate >/dev/null 2>&1; then
|
||||||
echo "Virtual environment could not be activated. Trying to run anyway"
|
echo "Virtual environment could not be activated. Trying to run anyway"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user