prayag17 / Blink

Modern Desktop Jellyfin Client made with Tauri and React :atom_symbol: [WIP]
GNU General Public License v3.0
764 stars 21 forks source link

AppImage build fails (Linux) #399

Closed flying-sheep closed 1 month ago

flying-sheep commented 2 months ago

Describe the bug The “Bundling AppImage” step fails:

    Built application at: /home/phil/Dev/Web/Blink/src-tauri/target/release/blink
    Bundling Blink_0.0.6-dev_amd64.deb (/home/phil/Dev/Web/Blink/src-tauri/target/release/bundle/deb/Blink_0.0.6-dev_amd64.deb)
    Bundling Blink_0.0.6-dev_amd64.AppImage (/home/phil/Dev/Web/Blink/src-tauri/target/release/bundle/appimage/Blink_0.0.6-dev_amd64.AppImage)
    Error failed to bundle project: error running build_appimage.sh: `failed to run /home/phil/Dev/Web/Blink/src-tauri/target/release/bundle/appimage/build_appimage.sh`
 ELIFECYCLE  Command failed with exit code 1.

when running the script manually, I see many errors like the last line here:

$ bash build_appimage.sh
[…]
+ /home/phil/.cache/tauri/linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir blink.AppDir --plugin gtk --output appimage
linuxdeploy version 1-alpha (git commit ID 659c9db), GitHub actions build 10 built on 2024-07-26 15:40:22 UTC
[…]
-- Copying files into AppDir -- 
[…]
ERROR: Strip call failed: /tmp/appimage_extracted_5a27dadc81a3abf452534fdbee9c58ee/usr/bin/strip: blink.AppDir/usr/lib/libudev.so.1: unknown type [0x13] section `.relr.dyn'
/tmp/appimage_extracted_5a27dadc81a3abf452534fdbee9c58ee/usr/bin/strip: Unable to recognise the format of the input file `blink.AppDir/usr/lib/libudev.so.1'

To Reproduce Follow official install instructions or go to src-tauri/target/release/bundle/appimage/ and run build_appimage.sh

Expected behavior AppImage builds

Desktop (please complete the following information):

prayag17 commented 1 month ago

The CI is building AppImage without any issues. Maybe you don't have all the dependencies installed on your system, rechech all your dependencies and env configurations

flying-sheep commented 1 month ago

Please check out the error message:

ERROR: Strip call failed: /tmp/appimage_extracted_5a27dadc81a3abf452534fdbee9c58ee/usr/bin/strip: blink.AppDir/usr/lib/libudev.so.1: unknown type [0x13] section `.relr.dyn'
/tmp/appimage_extracted_5a27dadc81a3abf452534fdbee9c58ee/usr/bin/strip: Unable to recognise the format of the input file `blink.AppDir/usr/lib/libudev.so.1'

so the blink.AppDir/libudev.so.1 can’t be processed by /tmp/appimage_extracted_5a27dadc81a3abf452534fdbee9c58ee/usr/bin/strip

It doesn’t seem that my system comes into play here, all parts at play here are from the build system.

Or am I missing something?