Skip to content

Commit e13b610

Browse files
authored
attempt to fix nonsense
1 parent c0b7a0e commit e13b610

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

make-appimage.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ quick-sharun \
2222
# they are also very delicate and get broken by strip
2323
kek=.$(tr -dc 'A-Za-z0-9_=-' < /dev/urandom | head -c 10)
2424
rm -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
3131
cp -f "\$APPDIR"/shared/lib/ld-linux*.so* /tmp/"$kek"
32-
exec "\$APPDIR"/bin/opencode-cli.wrapped "\$@"
3332
EOF
34-
chmod +x ./AppDir/bin/opencode-cli*
33+
chmod +x ./AppDir/bin/*.hook
3534

3635
# Turn AppDir into AppImage
3736
quick-sharun --make-appimage

0 commit comments

Comments
 (0)