Skip to content

Commit 20b3773

Browse files
cfsmp3claude
andcommitted
fix(ci): correct version and add missing dependencies in .deb workflow
- Update CMakeLists.txt version from 0.89 to 0.96 to match lib_ccx.h - Extract version from lib_ccx.h instead of CMakeLists.txt for accuracy - Add missing runtime dependencies: libtesseract, libleptonica - Add FFmpeg dependencies for hardsubx variant Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8786b4c commit 20b3773

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/build_deb.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
VERSION="${{ github.event.release.tag_name }}"
5353
VERSION="${VERSION#v}" # Remove 'v' prefix if present
5454
else
55-
VERSION=$(grep -oP 'CCEXTRACTOR_VERSION_MINOR\s+\K\d+' src/CMakeLists.txt || echo "96")
56-
VERSION="0.${VERSION}"
55+
# Extract version from lib_ccx.h (e.g., #define VERSION "0.96.5")
56+
VERSION=$(grep -oP '#define VERSION "\K[^"]+' src/lib_ccx/lib_ccx.h || echo "0.96")
5757
fi
5858
echo "version=$VERSION" >> $GITHUB_OUTPUT
5959
echo "Building version: $VERSION"
@@ -183,13 +183,21 @@ jobs:
183183
184184
INSTALLED_SIZE=$(du -sk ${PKG_NAME}/usr | cut -f1)
185185
186+
# Determine dependencies based on build variant
187+
if [ "$VARIANT" = "hardsubx" ]; then
188+
DEPENDS="libc6, libtesseract4 | libtesseract5, liblept5 | libleptonica, libavcodec58 | libavcodec59 | libavcodec60, libavformat58 | libavformat59 | libavformat60, libavutil56 | libavutil57 | libavutil58, libswscale5 | libswscale6 | libswscale7"
189+
else
190+
DEPENDS="libc6, libtesseract4 | libtesseract5, liblept5 | libleptonica"
191+
fi
192+
186193
cat > ${PKG_NAME}/DEBIAN/control << CTRL
187194
Package: ccextractor
188195
Version: ${VERSION}
189196
Section: utils
190197
Priority: optional
191198
Architecture: amd64
192199
Installed-Size: ${INSTALLED_SIZE}
200+
Depends: ${DEPENDS}
193201
Maintainer: CCExtractor Development Team <carlos@ccextractor.org>
194202
Homepage: https://www.ccextractor.org
195203
Description: ${PKG_DESCRIPTION}

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ option (WITH_HARDSUBX "Build with support for burned-in subtitles" OFF)
99

1010
# Version number
1111
set (CCEXTRACTOR_VERSION_MAJOR 0)
12-
set (CCEXTRACTOR_VERSION_MINOR 89)
12+
set (CCEXTRACTOR_VERSION_MINOR 96)
1313

1414
# Get project directory
1515
get_filename_component(BASE_PROJ_DIR ../ ABSOLUTE)

0 commit comments

Comments
 (0)