Initial commit: WidgetWorkbench HMI V4

This commit is contained in:
chris
2026-10-20 20:15:46 +00:00
commit 6eb3f8fa4f
118 changed files with 16523 additions and 0 deletions

10
hmi-scripts/deploy-war.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
TARGET="${1:-}"
if [[ -z "$TARGET" || ! -f "$TARGET/backend/pom.xml" ]]; then echo 'Usage: deploy-war.sh /path/to/Workbench' >&2; exit 2; fi
command -v npm >/dev/null || { echo 'npm fehlt' >&2; exit 2; }
command -v mvn >/dev/null || { echo 'mvn fehlt' >&2; exit 2; }
(cd "$TARGET/hmi-frontend" && npm install && npm run build)
(cd "$TARGET/backend" && mvn clean package)
echo 'WAR wurde gebaut. Bitte zunächst nach DEV deployen und HMI-Schema / Rollen prüfen.'
find "$TARGET/backend/target" -maxdepth 1 -name '*.war' -printf '%p\n'