tranxuanthang / lrcget

Utility for mass-downloading LRC synced lyrics for your offline music library.
MIT License
728 stars 21 forks source link

AppImage fails to build on Arch Linux #71

Open esmersmith opened 4 months ago

esmersmith commented 4 months ago

When running npm run tauri build on Arch Linux, the AppImage fails to build with:

Error failed to bundle project: error running appimage.sh

Running with the verbose flag shows the underlying issue (truncated for brevity):

Calling strip on library lrcget.AppDir/usr/lib/libxslt.so.1 

ERROR: Strip call failed: /tmp/appimage_extracted_f792e8e8b92755a0433a3895ce0e35fc/usr/bin/strip: lrcget.AppDir/usr/lib/libxslt.so.1: unknown type [0x13] section `.relr.dyn'

/tmp/appimage_extracted_f792e8e8b92755a0433a3895ce0e35fc/usr/bin/strip: Unable to recognise the format of the input file `lrcget.AppDir/usr/lib/libxslt.so.1'

Calling strip on library lrcget.AppDir/usr/lib/libyuv.so 
Calling strip on library lrcget.AppDir/usr/lib/libzstd.so.1 
       Error [tauri_cli_node] failed to bundle project: error running appimage.sh

I did some digging and it looks like it's an issue with linuxdeploy and has caused issues in other libraries depending on it. This likely hasn't been encountered yet as the last commit was prior to the linuxdeploy update in Debian. I suspect by now this change is in Debian and the next build will fail. Until the issue is resolved in linuxdeploy, the AppImage will compile if NO_STRIP=true is in the build environment.

tranxuanthang commented 4 months ago

There are more similar issues on upstream such as this one: https://github.com/tauri-apps/tauri/issues/8929, they also suggest NO_STRIP=true.