obs-r2-uploader/scripts/upload.bat

14 lines
360 B
Batchfile

@echo off
REM Upload a video file to Cloudflare R2
REM Usage: upload.bat C:\path\to\video.mp4 [optional-object-name]
REM Get the directory where this script is located
set SCRIPT_DIR=%~dp0
set PROJECT_DIR=%SCRIPT_DIR%..
REM Change to project directory to ensure .env is found
cd /d "%PROJECT_DIR%"
REM Run the upload script
python -m obs_uploader.upload %*