-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_mentimath.sh
More file actions
executable file
·38 lines (31 loc) · 986 Bytes
/
Copy pathbuild_mentimath.sh
File metadata and controls
executable file
·38 lines (31 loc) · 986 Bytes
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
#!/bin/bash
#chmod +x build_mentimath.sh
# ./build_mentimath.sh
Run
cd /home/popnoart/WORK/REPOSITORY/FANDOMS/MentiMath
echo "🧮 Generando MentiMath con diseño ORIGINAL..."
echo "============================================"
# Limpiar TODO
rm -rf build/
/opt/flutter/bin/flutter clean
# Generar APK
/opt/flutter/bin/flutter pub get
/opt/flutter/bin/flutter build apk --release
# Probar web
/opt/flutter/bin/flutter build web --release
#cd build/web
#python3 -m http.server 8080 &
echo "🌐 Web: http://localhost:8080"
# Renombrar
cd build/app/outputs/flutter-apk
FECHA=$(date +"%Y%m%d")
cp app-release.apk "MentiMath_${FECHA}.apk"
echo ""
echo "✅ ✅ ✅ APK LISTO ✅ ✅ ✅"
echo "=========================="
echo "📱 Archivo: MentiMath_${FECHA}.apk"
echo "📏 Tamaño: $(du -h MentiMath_${FECHA}.apk | cut -f1)"
echo "📁 Ruta: $(pwd)/MentiMath_${FECHA}.apk"
echo ""
echo "📤 Para copiar al móvil:"
echo " cp '$(pwd)/MentiMath_${FECHA}.apk' /ruta/a/tu/movil/"