Commit b6e58c3d authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play: added Hytale Launcher (eterbug #18799)

parent 22911c7b
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
mkdir -p opt/$PRODUCT
mkdir -p usr/
erc unpack $TAR || fatal
mv $PRODUCT opt/$PRODUCT
install_file https://aur.archlinux.org/cgit/aur.git/plain/com.hypixel.HytaleLauncher.png?h=hytale-launcher-bin /usr/share/pixmaps/$PRODUCT.png
cat <<EOF | create_file /usr/share/applications/com.hypixel.HytaleLauncher.desktop
[Desktop Entry]
Name=Hytale Launcher
Comment=Hytale Launcher
Exec=env __NV_DISABLE_EXPLICIT_SYNC=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 DESKTOP_STARTUP_ID=com.hypixel.HytaleLauncher $PRODUCT
Icon=$PRODUCT
Terminal=false
Type=Application
Categories=Game;
StartupWMClass=com.hypixel.HytaleLauncher
EOF
PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar opt/$PRODUCT usr || fatal
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=hytale-launcher
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Hytale Launcher (Native Linux, Self-Updating)"
URL="https://hytale.com"
. $(dirname $0)/common.sh
warn_version_is_not_supported
LAUNCHER_JSON="https://launcher.hytale.com/version/release/launcher.json"
JSON="$(eget -O- "$LAUNCHER_JSON")"
VERSION="$(echo "$JSON" | parse_json_value '["version"]' | tr '-' '.')"
[ -n "$VERSION" ] || fatal "Can't get version from $LAUNCHER_JSON"
PKGURL="$(echo "$JSON" | parse_json_value '["download_url","linux","amd64","url"]')"
[ -n "$PKGURL" ] || fatal "Can't get download URL from $LAUNCHER_JSON"
install_pack_pkgurl $VERSION
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