Commit 50034185 authored by Иван Мажукин's avatar Иван Мажукин Committed by Vitaly Lipatov

epm play: add sidequest

parent 63930e22
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
# SideQuest-0.10.39.tar.xz
BASENAME=$(basename $TAR .tar.xz)
VERSION=$(echo $BASENAME | sed -e 's|SideQuest-||' | sed -e 's|.tar.xz||')
[ -n "$VERSION" ] || fatal "Can't get package version"
ln -s $TAR $BASENAME.tar.xz
erc unpack $BASENAME.tar.xz || fatal
mkdir -p opt
mkdir -p usr/share/applications/
mv $BASENAME/ opt/sidequest
for res in 16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024; do
install -dm644 "usr/share/icons/hicolor/${res}/apps/"
cp opt/sidequest/resources/app.asar.unpacked/build/icons/${res}.png usr/share/icons/hicolor/${res}/apps/sidequest.png
done
# create desktop file
cat <<EOF > usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=SideQuest
Comment=The SideQuest desktop application
Exec=$PRODUCT %U
Icon=$PRODUCT
Terminal=false
StartupNotify=true
Categories=Development;Game;HardwareSettings
StartupWMClass=SideQuest
MimeType=x-scheme-handler/sidequest;
EOF
PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar opt usr || fatal
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=sidequest
SUPPORTEDARCHES="x86_64"
DESCRIPTION='The SideQuest desktop application'
URL="https://sidequestvr.com/"
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest "https://github.com/SideQuestVR/SideQuest/releases/" "*.tar.xz") || fatal "Can't get package URL"
epm pack --install $PKGNAME "$PKGURL"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common-chromium-browser.sh
add_bin_link_command
fix_chrome_sandbox
add_electron_deps
# fix_desktop_file
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