Commit ebc22b64 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add claude-code-webui

parent d3a16aca
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
URL="$4"
. $(dirname $0)/common.sh
PRODUCTDIR=opt/$PRODUCT
install -D -m755 $TAR $PRODUCTDIR/$PRODUCT || fatal
VERSION=$(echo "$URL" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
[ -n "$VERSION" ] || fatal "Can't get package version"
PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar $PRODUCTDIR
cat <<EOF >$PKGNAME.tar.eepm.yaml
name: $PRODUCT
version: $VERSION
group: Networking/WWW
license: MIT
url: https://github.com/sugyan/claude-code-webui
summary: Web interface for Claude Code CLI
description: A modern web-based interface that transforms Claude CLI into an intuitive chat application.
EOF
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=claude-code-webui
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="Web interface for Claude Code CLI"
URL="https://github.com/sugyan/claude-code-webui"
. $(dirname $0)/common.sh
arch="$(epm print info -a)"
case "$arch" in
x86_64)
arch=x64
;;
aarch64)
arch=arm64
;;
esac
ASSET_NAME="$PKGNAME-linux-$arch"
if [ "$VERSION" = "*" ] ; then
PKGURL=$(get_github_url "sugyan/claude-code-webui" "$ASSET_NAME")
checksum=$(get_github_asset_checksum "sugyan/claude-code-webui" "$ASSET_NAME")
else
PKGURL="https://github.com/sugyan/claude-code-webui/releases/download/$VERSION/$ASSET_NAME"
fi
install_pack_pkgurl "" "" "$checksum"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment