[termux] testing support to termux

This commit is contained in:
synt-xerror
2026-03-14 01:21:19 -03:00
parent 2d4376bc25
commit 95ddb1f9e9
2 changed files with 26 additions and 2 deletions

8
setup
View File

@@ -18,7 +18,7 @@ download_file() {
fi
echo "Baixando $url → $dest"
if command -v curl >/dev/null 2>&1; then
curl -L "$url" -o "$dest"
elif command -v wget >/dev/null 2>&1; then
@@ -43,8 +43,14 @@ esac
echo "Plataforma detectada: $PLATFORM"
# Setup npm
export PUPPETEER_SKIP_DOWNLOAD=1
run_cmd npm ci
# Instala o chromium manualmente se estiver no termux
if [[ "$PREFIX" == *"com.termux"* ]]; then
command -v chromium >/dev/null 2>&1 || pkg install -y chromium
fi
# Cria pasta bin
mkdir -p bin