Skip to content

Commit

Permalink
appimage: fix suspicious ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
Bignaux Ronan committed Mar 4, 2020
1 parent 92b3634 commit 3443b69
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkgs/build-support/appimage/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rec {
@sh "appimageSignature=\(.appimageSignature) appimageType=\(.appimageType)"')
# check AppImage signature
if [[ $appimageSignature != "AI" ]]; then
if [[ "$appimageSignature" != "AI" ]]; then
echo "Not an appimage."
exit
fi
Expand All @@ -25,14 +25,13 @@ rec {
;;
2)
install $src ./appimage
# multiarch offset one-liner using same method as AppImage
# see https://gist.github.com/probonopd/a490ba3401b5ef7b881d5e603fa20c93
offset=$(r2 ./appimage -nn -Nqc "pfj.elf_header @ 0" |\
offset=$(r2 $src -nn -Nqc "pfj.elf_header @ 0" |\
jq 'map({(.name): .value}) | add | .shoff + (.shnum * .shentsize)')
unsquashfs -q -d $out -o $offset ./appimage
unsquashfs -q -d $out -o $offset $src
chmod go-w $out
;;
# 3) get ready, https://github.com/TheAssassin/type3-runtime
Expand Down

0 comments on commit 3443b69

Please sign in to comment.