diff --git a/06-WAMO-Installer.bat b/06-WAMO-Installer.bat new file mode 100644 index 0000000..067528d --- /dev/null +++ b/06-WAMO-Installer.bat @@ -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 \ No newline at end of file diff --git a/07-WAMO-Update.bat b/07-WAMO-Update.bat new file mode 100644 index 0000000..94566eb --- /dev/null +++ b/07-WAMO-Update.bat @@ -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 +) \ No newline at end of file