mirror of
https://github.com/thiagoralves/OpenPLC_Editor.git
synced 2025-05-09 00:21:53 +08:00
16 lines
543 B
Batchfile
16 lines
543 B
Batchfile
set gitdir=%CD%\pgit
|
|
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
|
|
copy /y .\OpenPLC_Editor\revision .\
|
|
rmdir /s /Q OpenPLC_Editor
|
|
echo "Update applied successfully"
|
|
) else (
|
|
echo "Error cloning from repository!"
|
|
)
|