[termux] testing support for termux v12

This commit is contained in:
synt-xerror
2026-03-14 02:38:06 -03:00
parent 490827dc17
commit 3c09738c06
2 changed files with 3 additions and 5 deletions

View File

@@ -7,7 +7,6 @@
"node-gyp": "^12.2.0", "node-gyp": "^12.2.0",
"qrcode-terminal": "^0.12.0", "qrcode-terminal": "^0.12.0",
"sharp": "^0.34.5", "sharp": "^0.34.5",
"whatsapp-web.js": "^1.24.0", "whatsapp-web.js": "^1.24.0"
"@img/sharp-wasm": "^0.34.5"
} }
} }

5
setup
View File

@@ -150,10 +150,10 @@ if [[ "$PREFIX" == *"com.termux"* ]]; then
log_info "Usando sharp via WebAssembly" log_info "Usando sharp via WebAssembly"
if node -e "require('@img/sharp-wasm')" >/dev/null 2>&1; then if node -e "require('@img/sharp-wasm32')" >/dev/null 2>&1; then
log_ok "sharp-wasm já instalado" log_ok "sharp-wasm já instalado"
else else
run_cmd npm install @img/sharp-wasm run_cmd npm install @img/sharp-wasm32
fi fi
fi fi
@@ -164,7 +164,6 @@ log_info "Instalando dependências npm"
export PUPPETEER_SKIP_DOWNLOAD=1 export PUPPETEER_SKIP_DOWNLOAD=1
run_cmd npm install run_cmd npm install
run_cmd npm ci
# ------------------------ # ------------------------
# Diretórios # Diretórios