Streamerbot / sb-linux-installer

Install shell script to easily setup Streamer.bot with wine on Linux
https://streamer.bot
GNU General Public License v3.0
17 stars 3 forks source link
linux twitch

Streamer.Bot Linux Install Script

With this script you can easily install the latest version of Streamer.bot on Linux. It will create a command streamer.bot as well as a menu entry via streamerbot.desktop

currently tested distributions:

If the prerequisites are installed already, this script should work on all distributions

Usage

Default Settings

Paths

Make sure .local/bin is in your $PATH, e.g. add .local/bin to your $PATH via .profile or .bash_profile file:

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

This script will try to add these lines if possible.

Prerequisites

Linux (doh!), with a standard desktop environment, bash, awk, curl, wget, unzip

optional: jq

If the release will be obtained automatically from github jq is needed, which will be attempted to be installed automatically. If an url or a local file of the release file is provided (see below), installation of jq can be skipped.

mandatory: wine

If not found, wine will be installed automatically from the repositories, maybe you want to install it manually before, as Ubuntu, Debian, Fedora will probably have outdated versions.

Latest versions in rolling releases available:

mandatory: winetricks https://wiki.winehq.org/Winetricks https://github.com/Winetricks/winetricks

Update

UPDATE=1 ./install.sh

If no other options are given, the script will grab the latest version from github and overwrite the existing files. Can be combined with specifying file location or URL (see below).

Use local file or specific URL

To fetch a specific version of Streamer.bot:

VERSION=0.2.0 ./install.sh

If you downloaded Streamer.bot already (e.g. a beta), you can specify the .zip location:

FILE=$HOME/Downloads/Streamer.bot-0.1.3-preview4.zip ./install.sh

Alternatively you can also provide a specifc url

URL=https://cdn.discordapp.com/attachments/879546641051422750/881631757550632970/Streamer.bot-0.1.3-preview4.zip ./install.sh

Manual install

If you would like to manually install Streamer.bot:

Uninstall

UNINSTALL=1 ./install.sh

Troubleshooting

Winetricks takes a while to complete (several minutes). especially if it has to download from web.archive.org. winetricks might get stuck, if you interrupt it with ctrl+c the script will try to end all remaining wine processes. Try to uninstall (see above) and install from scratch again.

Notes

Big thanks to nate1280 who relentlessly works on Streamer.bot and adjusted it to work with wine.