mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
## 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)
15 lines
548 B
Batchfile
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
|
|
) |