Open TheAssassin opened 1 month ago
So this can be closed now?
I'd still prefer to use an alternative solution. Let's please keep this open. It's really low priority, but maybe I'll come across a nicer solution than using file
on the shell.
Use the value from the env matrix in the GitHub Actions yml file?
That's one option. But as said, this has got no priority at the moment.
The architecture check introduced in https://github.com/AppImage/type2-runtime/pull/49 breaks the detection on OSes other than Alpine because of them using busybox. On Ubuntu 22.04,
file
returns the following:The output does not match
x86_64
, the string probed by the bash script. Edit: to clarify: the issue here is that it probes against the loader path, not the architecture reported byfile
.Please note that this is not an imminent problem since I need to use the Alpine containerized build environment anyway due to the very simplistic build scripts. However, the chosen solution is not portable in any way.
By the way,
x86-64
would be working on both systems. However, I'd rather use a dedicated tool likeuname
. Unfortunately, busybox's implementation doesn't support-p
properly in containers, it returnsunknown
there.