fix(setup): correção no comando de permissões dos binários
This commit is contained in:
13
setup
13
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."
|
||||
Reference in New Issue
Block a user