@jnsgruk Thanks very much to you and to your colleague Seb for looking into this.
I assume that head in rust-coreutils might get patched to match gnu coreutils at some point.
However
I also thought that this was part of the problem. This is also causing us another BR.
We do not generate those scripts, they come from electron-builder. We would appreciate if you could upstream your findings/changes to electron-builder.