From b50099feb669a3338345e552de2e9926f855a274 Mon Sep 17 00:00:00 2001 From: synt-xerror <169557594+synt-xerror@users.noreply.github.com> Date: Tue, 24 Mar 2026 10:26:08 -0300 Subject: [PATCH] =?UTF-8?q?fix(setup):=20corre=C3=A7=C3=A3o=20no=20comando?= =?UTF-8?q?=20de=20permiss=C3=B5es=20dos=20bin=C3=A1rios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/setup b/setup index d2031ee..c15780c 100755 --- a/setup +++ b/setup @@ -185,18 +185,17 @@ files=() if [[ "$PLATFORM" == "win" ]]; then log_debug "Usando binários Windows" files=( - "https://github.com/synt-xerror/manybot/releases/download/dependencies/yt-dlp.exe bin/yt-dlp.exe" - "https://github.com/synt-xerror/manybot/releases/download/dependencies/ffmpeg.exe bin/ffmpeg.exe" + "https://github.com/synt-xerror/manybot/releases/download/dependencies/yt-dlp.exe $SCRIPT_DIR/bin/yt-dlp.exe" + "https://github.com/synt-xerror/manybot/releases/download/dependencies/ffmpeg.exe $SCRIPT_DIR/bin/ffmpeg.exe" ) else log_debug "Usando binários Unix" files=( - "https://github.com/synt-xerror/manybot/releases/download/dependencies/yt-dlp bin/yt-dlp" - "https://github.com/synt-xerror/manybot/releases/download/dependencies/ffmpeg bin/ffmpeg" + "https://github.com/synt-xerror/manybot/releases/download/dependencies/yt-dlp $SCRIPT_DIR/bin/yt-dlp" + "https://github.com/synt-xerror/manybot/releases/download/dependencies/ffmpeg $SCRIPT_DIR/bin/ffmpeg" ) fi -chmod +x bin/* log_debug "Total de arquivos para baixar: ${#files[@]}" # ------------------------ @@ -210,4 +209,8 @@ for file in "${files[@]}"; do download_file "$url" "$dest" done +# permissões +log_info "Aplicando permissões de execução" +chmod -R +x $SCRIPT_DIR/bin/ + log_ok "Setup concluído com sucesso.\nRode sempre na raíz: 'node src/main.js' (ou equivalente) para rodar o bot." \ No newline at end of file