Skip to content

Commit aa2da4e

Browse files
authored
fix aur change
1 parent 1ad18b5 commit aa2da4e

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

make-appimage.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,22 @@ export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}
1111
export ICON=/usr/share/icons/hicolor/128x128/apps/OpenCode.png
1212
export DESKTOP=/usr/share/applications/OpenCode.desktop
1313
export DEPLOY_OPENGL=1
14-
export DEPLOY_P11KIT=1
1514

1615
# Deploy dependencies
17-
quick-sharun \
18-
/usr/bin/OpenCode \
19-
/usr/bin/opencode-cli
16+
quick-sharun /usr/bin/opencode*
2017

2118
# bun makes binaries that self extract and read /proc/self/exe
2219
# they are also very delicate and get broken by strip
2320
kek=.$(tr -dc 'A-Za-z0-9_=-' < /dev/urandom | head -c 10)
24-
rm -f ./AppDir/bin/opencode-cli ./AppDir/shared/bin/opencode-cli
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
21+
rm -f \
22+
./AppDir/bin/opencode \
23+
./AppDir/bin/opencode-cli \
24+
./AppDir/shared/bin/opencode \
25+
./AppDir/shared/bin/opencode-cli
26+
cp -v /usr/bin/opencode ./AppDir/bin/opencode
27+
ln -s opencode ./AppDir/bin/opencode-cli
28+
patchelf --set-interpreter /tmp/"$kek" ./AppDir/bin/opencode
29+
patchelf --set-rpath '$ORIGIN/../lib' ./AppDir/bin/opencode
2830

2931
cat <<EOF > ./AppDir/bin/random-linker.src.hook
3032
#!/bin/sh

0 commit comments

Comments
 (0)