feat: enhance application functionality and telemetry monitoring
- Added new scripts in `package.json` for Python dependency installation and sidecar compilation. - Integrated telemetry fetching in `src/App.tsx` to monitor CPU, RAM, GPU, and disk usage. - Implemented model downloading functionality with progress tracking in `src/App.tsx`. - Updated `Footer` and `Header` components to display telemetry data and settings options. - Enhanced Tauri configuration for sidecar execution and application window settings. - Updated Python requirements in `requirements.txt` to include additional dependencies for improved functionality.
This commit is contained in:
1 parent
482b28513e
commit
08e154894a
24 files changed
+1110
-91
No files matched your search
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Script Bash para instalar dependências Python antes de executar
|
||||
|
||||
set -e
|
||||
|
||||
REQUIREMENTS_PATH="${1:-src-python/requirements.txt}"
|
||||
PYTHON_CMD="${2:-python3}"
|
||||
|
||||
# Resolve caminho absoluto
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
REQUIREMENTS_FILE="$SCRIPT_DIR/../$REQUIREMENTS_PATH"
|
||||
|
||||
if [ ! -f "$REQUIREMENTS_FILE" ]; then
|
||||
echo "[Python Deps] ERRO: Arquivo não encontrado: $REQUIREMENTS_FILE" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[Python Deps] Verificando dependências em: $REQUIREMENTS_FILE"
|
||||
|
||||
# Verifica se pip está disponível
|
||||
if ! $PYTHON_CMD -m pip --version >/dev/null 2>&1; then
|
||||
echo "[Python Deps] ERRO: pip não encontrado. Instale Python com pip." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Instala dependências
|
||||
echo "[Python Deps] Instalando dependências..."
|
||||
$PYTHON_CMD -m pip install --quiet --upgrade pip
|
||||
$PYTHON_CMD -m pip install --quiet -r "$REQUIREMENTS_FILE"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[Python Deps] Dependências instaladas com sucesso."
|
||||
else
|
||||
echo "[Python Deps] ERRO: Falha ao instalar dependências." >&2
|
||||
exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user