File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,16 +22,15 @@ quick-sharun \
2222# they are also very delicate and get broken by strip
2323kek=.$( tr -dc ' A-Za-z0-9_=-' < /dev/urandom | head -c 10)
2424rm -f ./AppDir/bin/opencode-cli ./AppDir/shared/bin/opencode-cli
25- cp -v /usr/bin/opencode-cli ./AppDir/bin/opencode-cli.wrapped
26- patchelf --set-interpreter /tmp/" $kek " ./AppDir/bin/opencode-cli.wrapped
27- patchelf --set-rpath ' $ORIGIN/../lib' ./AppDir/bin/opencode-cli.wrapped
25+ cp -v /usr/bin/opencode-cli ./AppDir/bin/opencode-cli
26+ patchelf --set-interpreter /tmp/" $kek " ./AppDir/bin/opencode-cli
27+ patchelf --set-rpath ' $ORIGIN/../lib' ./AppDir/bin/opencode-cli
2828
29- cat << EOF > ./AppDir/bin/opencode-cli
29+ cat << EOF > ./AppDir/bin/random-linker.src.hook
3030#!/bin/sh
3131cp -f "\$ APPDIR"/shared/lib/ld-linux*.so* /tmp/"$kek "
32- exec "\$ APPDIR"/bin/opencode-cli.wrapped "\$ @"
3332EOF
34- chmod +x ./AppDir/bin/opencode-cli *
33+ chmod +x ./AppDir/bin/* .hook
3534
3635# Turn AppDir into AppImage
3736quick-sharun --make-appimage
You can’t perform that action at this time.
0 commit comments