Files
ccextractor/windows/rust.bat
Prateek Sunal 42d750950a [FIX] add mac-ocr-hardsubx workflow & ffmpeg variants support (#1745)
## Fix
- Update params and there doc

## Mac OS:
- Fix FFMpeg, tesseract compilation
- Re-add Mac os build hardsubx workflow

## FFMpeg used in workflow:
- MacOS: `8.*`
- Windows: `6.*` (pinned VCPKG supports this)
- Linux: `6.*` (Latest ubuntu runner supports this)
2025-11-03 23:47:42 +05:30

15 lines
548 B
Batchfile

for /f "delims=" %%i in ('cd') do set output=%%i
set CARGO_TARGET_DIR=%output%
cd ..\src\rust
REM Allow overriding FFmpeg version via environment variable
IF "%FFMPEG_VERSION%"=="" (
cargo build %1 --features "hardsubx_ocr" --target x86_64-pc-windows-msvc
) ELSE (
cargo build %1 --features "hardsubx_ocr,%FFMPEG_VERSION%" --target x86_64-pc-windows-msvc
)
cd ..\..\windows
IF "%~1"=="-r" (
copy x86_64-pc-windows-msvc\release\ccx_rust.lib .\ccx_rust.lib
) ELSE (
copy x86_64-pc-windows-msvc\release-with-debug\ccx_rust.lib .\ccx_rust.lib
)