1d22adc42e
Backend (Express + MariaDB) y frontend (React + Vite, identidad Fluent/Windows) con el nucleo funcional: seguridad, organizacion, proyectos, actividades, subtareas, dependencias, dashboard, calendario, gantt, comentarios, adjuntos, notificaciones in-app y catalogos. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
25 lines
568 B
Bash
Executable File
25 lines
568 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [[ $# -ne 1 ]]; then
|
|
echo "Uso: $0 <version>"
|
|
exit 1
|
|
fi
|
|
|
|
VERSION="$1"
|
|
|
|
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
echo "La version debe tener formato X.Y.Z — ejemplo: 1.2.3"
|
|
exit 1
|
|
fi
|
|
|
|
printf '%s\n' "$VERSION" > VERSION
|
|
|
|
[[ -f frontend/package.json ]] && \
|
|
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$VERSION\"/" frontend/package.json
|
|
|
|
[[ -f backend/package.json ]] && \
|
|
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$VERSION\"/" backend/package.json
|
|
|
|
echo "Version actualizada a $VERSION"
|