Adding Updater and installer
This commit is contained in:
parent
0971185e7b
commit
a65eb2a0a0
5
06-WAMO-Installer.bat
Normal file
5
06-WAMO-Installer.bat
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
set DIR=%~dp0
|
||||||
|
cd "%DIR%"
|
||||||
|
git clone --branch dev https://info.system:ZeMA123$@git.zema.de/tfs/ZISS/_git/ZISS-Kernel-2.0
|
||||||
|
cd ZISS-Kernel-2.0
|
||||||
|
call ./00-install.bat
|
44
07-WAMO-Update.bat
Normal file
44
07-WAMO-Update.bat
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
set DIR=%~dp0
|
||||||
|
cd "%DIR%"
|
||||||
|
@echo off
|
||||||
|
git pull
|
||||||
|
|
||||||
|
%@Try%
|
||||||
|
@REM Uninstall IO-Server
|
||||||
|
node .\dist\lib\cli\ioServerService.js -m uninstall
|
||||||
|
%@EndTry%
|
||||||
|
:@Catch
|
||||||
|
echo uninstall IO-Server
|
||||||
|
:@EndCatch
|
||||||
|
|
||||||
|
@REM Uninstall all Services
|
||||||
|
for /f "delims=" %%a in ('dir /s /o /b *03-uninstall.bat') do (
|
||||||
|
echo %%a
|
||||||
|
call %%a
|
||||||
|
)
|
||||||
|
|
||||||
|
@REM Delete old Files.
|
||||||
|
rm -r dist
|
||||||
|
rm -r services
|
||||||
|
|
||||||
|
@REM compile
|
||||||
|
%@Try%
|
||||||
|
echo Recompiling
|
||||||
|
call npx tsc -p ./tsconfigBackend.json --pretty
|
||||||
|
%@EndTry%
|
||||||
|
:@Catch
|
||||||
|
echo Expected some errors
|
||||||
|
:@EndCatch
|
||||||
|
|
||||||
|
@REM update the Configuration:
|
||||||
|
node .\dist\modules\wamo\cli\generateConfig.js
|
||||||
|
node .\dist\lib\cli\createService.js
|
||||||
|
node .\dist\lib\cli\ioServerService.js -m install
|
||||||
|
|
||||||
|
@REM now reinstall the services
|
||||||
|
|
||||||
|
@REM Uninstall all Services
|
||||||
|
for /f "delims=" %%a in ('dir /s /o /b *01-install.bat') do (
|
||||||
|
echo %%a
|
||||||
|
call %%a
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user