File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,17 +27,19 @@ rm -f \
2727 ./AppDir/bin/opencode-cli \
2828 ./AppDir/shared/bin/opencode \
2929 ./AppDir/shared/bin/opencode-cli
30- cp -v /usr/bin/opencode ./AppDir/bin/opencode
31- ln -s opencode ./AppDir/bin/opencode-cli
32- patchelf --set-interpreter /tmp/" $kek " ./AppDir/bin/opencode
33- patchelf --set-rpath ' $ORIGIN/../lib' ./AppDir/bin/opencode
3430
35- cat << EOF > ./AppDir/bin/random-linker.src.hook
31+ cat << EOF > ./AppDir/bin/opencode-cli
3632#!/bin/sh
3733cp -f "\$ APPDIR"/shared/lib/ld-linux*.so* /tmp/"$kek "
34+ export LD_LIBRARY_PATH="\$ APPDIR"/shared/lib
35+ exec "\$ APPDIR"/bin/opencode.wrapped
3836EOF
3937chmod +x ./AppDir/bin/* .hook
4038
39+ cp -v /usr/bin/opencode ./AppDir/bin/opencode.wrapped
40+ ln -s opencode-cli ./AppDir/bin/opencode
41+ patchelf --set-interpreter /tmp/" $kek " ./AppDir/bin/opencode.wrapped
42+
4143# for weird reasons opencode now attempts to execute $(basename $APPIMAGE)/opencode-cli
4244# this makes absolutely no sense wtf, so we have to set the APPIMAGE var to the
4345# opencode binary inside the AppDir so that it resolves correctly
You can’t perform that action at this time.
0 commit comments