Skip to content

Commit df3230a

Browse files
committed
upstream removed opencode-cli
1 parent e32046c commit df3230a

2 files changed

Lines changed: 1 addition & 30 deletions

File tree

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,9 @@
1818

1919
Improved AppImage of opencode **independent of the host libc** which makes able to work on very very old distros as well as musl-libc distros like alpine linux.
2020

21-
* `opencode-cli` is also included, to use it you can do the following:
22-
23-
```
24-
# change argv0 to opencode-cli (similar to how busybox works)
25-
ln -s ./OpenCode-*.AppImage ./opencode-cli
26-
./opencode-cli
27-
28-
# or pass opencode-cli as $1
29-
./OpenCode-*.AppImage opencode-cli
30-
```
31-
3221
---
3322

34-
AppImage made using [sharun](https://github.com/VHSgunzo/sharun) and its wrapper [quick-sharun](https://github.com/pkgforge-dev/Anylinux-AppImages/blob/main/useful-tools/quick-sharun.sh), which makes it extremely easy to turn any binary into a portable package reliably without using containers or similar tricks.
23+
AppImage made using [sharun](https://github.com/VHSgunzo/sharun) and its wrapper [quick-sharun](https://github.com/pkgforge-dev/Anylinux-AppImages/blob/main/useful-tools/quick-sharun.sh), which makes it extremely easy to turn any binary into a portable package reliably without using containers or similar tricks.
3524

3625
**This AppImage bundles everything and it should work on any Linux distro, including old and musl-based ones.**
3726

make-appimage.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,12 @@ export ADD_HOOKS="self-updater.bg.hook"
99
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
1010
export DEPLOY_OPENGL=1
1111

12-
# save the bun binary for later
13-
cp -v ./AppDir/bin/resources/opencode-cli ./
14-
1512
# Deploy dependencies
1613
quick-sharun \
1714
./AppDir/bin/* \
1815
/usr/lib/libnss_nis.so* \
1916
/usr/lib/libnsl.so* \
2017
/usr/lib/libnss_mdns*_minimal.so*
2118

22-
# bun makes binaries that self extract and read /proc/self/exe
23-
# they are also very delicate and get broken by strip
24-
f=./AppDir/bin/opencode-cli
25-
rm -f "$f" ./AppDir/bin/resources/opencode-cli
26-
kek=.$(tr -dc 'A-Za-z0-9_=-' < /dev/urandom | head -c 10)
27-
cp -v ./opencode-cli "$f"
28-
patchelf --set-interpreter /tmp/"$kek" "$f"
29-
patchelf --set-rpath '$ORIGIN/../lib' "$f"
30-
ln -s ../opencode-cli ./AppDir/bin/resources/opencode-cli
31-
32-
cat <<EOF > ./AppDir/bin/random-linker.src.hook
33-
#!/bin/false
34-
cp -f "\$APPDIR"/shared/lib/ld-linux*.so* /tmp/"$kek"
35-
EOF
36-
3719
# Turn AppDir into AppImage
3820
quick-sharun --make-appimage

0 commit comments

Comments
 (0)