appimage-builder
appimage-builder copied to clipboard
Getting `UnicodeDecodeError` when building
I'm not sure why, but whenever I run a build I get an error message saying UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 574750: invalid continuation byte. I've tested it with the following example:
version: 1
AppDir:
path: ./AppDir
app_info:
id: com.example.testing
name: Testing
icon: firefox
version: 0.1.0
exec: usr/bin/echo
exec_args: "$@"
apt:
arch: amd64
sources:
- sourceline: 'deb http://us.archive.ubuntu.com/ubuntu/ kinetic main'
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xf6ecb3762474eda9d21b7022871920d1991bc93c'
include:
- bash
AppImage:
update-information: None
sign-key: None
arch: x86_64
I'm on Ubuntu 22.10 for my build system. Sorry I can't send a full traceback, there's a lot of personal information in it that I don't want to send over much.
The problem seems to be stemming from a Rust binary I'm including in application - if I make the Rust binary non-executable everything works fine, but then I'm having to include a wrapper script to make the application executable at runtime, which definitely isn't ideal.
I saw that https://github.com/StratusFearMe21/cargo-appimage existed which I haven't tried yet, but I kind of just want to stick with this tooling if I at all can.
I can confirm the issue happens if you just try to install rclone into the AppImage as well. My project is public now though, if you want to see the build file you can find it here.