Skip to content

Commit b88d1eb

Browse files
cfsmp3claude
andcommitted
fix(ci): Fix AppImage build failures for OCR and HardSubX variants
OCR build fix: - linuxdeploy was failing with "Invalid magic bytes in file header" because it was passed the wrapper script instead of the actual binary - When OCR is enabled, ccextractor is renamed to ccextractor.bin and a wrapper script sets TESSDATA_PREFIX before executing the binary - Now correctly passes ccextractor.bin to linuxdeploy when it exists HardSubX build fix: - Add libavdevice-dev to FFmpeg dependencies in CI workflow - rusty_ffmpeg requires libavdevice which was missing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent ec11b00 commit b88d1eb

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/build_appimage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ jobs:
8383
libavutil-dev \
8484
libswscale-dev \
8585
libswresample-dev \
86-
libavfilter-dev
86+
libavfilter-dev \
87+
libavdevice-dev
8788
8889
- name: Install Rust toolchain
8990
if: steps.should_build.outputs.should_build == 'true'

linux/build_appimage.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,18 @@ esac
203203
# Build AppImage
204204
echo "Building AppImage..."
205205
export OUTPUT="$OUTPUT_NAME"
206+
207+
# Determine which executable to pass to linuxdeploy
208+
# For OCR builds, we have a wrapper script, so pass the actual binary (.bin)
209+
if [ -f "AppDir/usr/bin/ccextractor.bin" ]; then
210+
LINUXDEPLOY_EXEC="AppDir/usr/bin/ccextractor.bin"
211+
else
212+
LINUXDEPLOY_EXEC="AppDir/usr/bin/ccextractor"
213+
fi
214+
206215
./linuxdeploy-x86_64.AppImage \
207216
--appdir=AppDir \
208-
--executable=AppDir/usr/bin/ccextractor \
217+
--executable="$LINUXDEPLOY_EXEC" \
209218
--desktop-file=AppDir/ccextractor.desktop \
210219
--icon-file=AppDir/ccextractor.png \
211220
--output=appimage

0 commit comments

Comments
 (0)