-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstalar.command
More file actions
executable file
·68 lines (57 loc) · 1.58 KB
/
instalar.command
File metadata and controls
executable file
·68 lines (57 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# Script de instalación para BMX Freestyle Scoring System
# Este script debe ejecutarse SOLO UNA VEZ en la instalación inicial
cd "$(dirname "$0")"
echo ""
echo "🚀 =========================================="
echo " INSTALACIÓN BMX FREESTYLE"
echo " =========================================="
echo ""
# Verificar Node.js
if ! command -v node &> /dev/null; then
echo "❌ ERROR: Node.js no está instalado"
echo ""
echo "Por favor instalar Node.js desde:"
echo "https://nodejs.org"
echo ""
read -p "Presiona Enter para salir..."
exit 1
fi
echo "✅ Node.js detectado: $(node --version)"
echo ""
# Instalar dependencias
echo "📦 Instalando dependencias..."
npm install
if [ $? -ne 0 ]; then
echo ""
echo "❌ Error al instalar dependencias"
read -p "Presiona Enter para salir..."
exit 1
fi
echo ""
echo "🔧 Instalando herramientas de desarrollo..."
npm install --save-dev electron-rebuild
echo ""
echo "⚙️ Compilando módulos nativos para Electron..."
npx electron-rebuild
if [ $? -ne 0 ]; then
echo ""
echo "❌ Error al compilar módulos nativos"
read -p "Presiona Enter para salir..."
exit 1
fi
echo ""
echo "✅ =========================================="
echo " INSTALACIÓN COMPLETADA"
echo " =========================================="
echo ""
echo "🎯 Ahora puedes usar:"
echo ""
echo " • Iniciar-HeadJudge.command"
echo " • Iniciar-Juez.command"
echo " • Iniciar-Display.command"
echo ""
echo "Para más información, lee:"
echo " GUIA-RAPIDA.md"
echo ""
read -p "Presiona Enter para salir..."