mirror of
https://github.com/thiagoralves/OpenPLC_Editor.git
synced 2025-05-08 08:00:54 +08:00
Update git-submodules during update procedure for full update.
This commit is contained in:
parent
57e613a3e6
commit
e181db4903
@ -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'."
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user