Update git-submodules during update procedure for full update.

This commit is contained in:
joluxer 2024-08-15 20:35:37 +02:00
parent 57e613a3e6
commit e181db4903
3 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,8 @@ VENV_DIR="$OPENPLC_DIR/.venv"
echo ""
git submodule update --init --recursive "$OPENPLC_DIR"
# Check for Gentoo
if ! command -v equery &> /dev/null; then
echo "This script is intended for Gentoo Linux and relies there on 'app-portage/gentoolkit'."

View File

@ -4,6 +4,8 @@ OPENPLC_DIR="$(dirname "$(readlink -f "$0")")"
VENV_DIR="$OPENPLC_DIR/.venv"
cd "$OPENPLC_DIR"
git submodule update --init --recursive "$OPENPLC_DIR"
echo "Installing OpenPLC Editor"
echo "Please be patient. This may take a couple minutes..."
echo ""
@ -43,7 +45,7 @@ fi
if [ $(uname) == "FreeBSD" ]; then
# use system packages on FreeBSD
python3.9 -m venv --system-site-packages "$VENV_DIR"
"$VENV_DIR/bin/python" -m pip install --upgrade pip
"$VENV_DIR/bin/python" -m pip install --upgrade pip
"$VENV_DIR/bin/python" -m pip install zeroconf pypubsub pyro5 attrdict3
else
python3.9 -m venv "$VENV_DIR"

View File

@ -3,6 +3,7 @@ set path=%gitdir%\cmd;%path%
if exist .\new_editor\ rmdir /s /Q new_editor
if exist .\OpenPLC_Editor\ rmdir /s /Q OpenPLC_Editor
git clone https://github.com/thiagoralves/OpenPLC_Editor
git submodule update --init --recursive OpenPLC_Editor
if exist .\OpenPLC_Editor\editor\ (
move .\OpenPLC_Editor\editor .\new_editor
move .\OpenPLC_Editor\matiec\lib .\new_lib