Last active
March 14, 2020 09:42
-
-
Save tylerforesthauser/ecf097016e0f0e8dfe685508a1220938 to your computer and use it in GitHub Desktop.
FileBot Beta Installer for USB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -xu | |
# Based on the official tar installer: https://raw.githubusercontent.com/filebot/plugins/master/installer/tar.sh | |
PACKAGE_VERSION=4.9.0 | |
PACKAGE_SHA256=$(curl -fsSL https://get.filebot.net/filebot/BETA/FileBot_$PACKAGE_VERSION-portable.zip.sha256) | |
PACKAGE_FILE=FileBot_$PACKAGE_VERSION-portable.tar.xz | |
PACKAGE_URL=https://get.filebot.net/filebot/BETA/$PACKAGE_FILE | |
# Download latest portable package | |
curl -o "$PACKAGE_FILE" -z "$PACKAGE_FILE" "$PACKAGE_URL" | |
# Check SHA-256 checksum | |
echo "$PACKAGE_SHA256 *$PACKAGE_FILE" | sha256sum --check || exit 1 | |
# Extract *.tar.xz archive | |
tar xvf "$PACKAGE_FILE" | |
# Increase maximum amount of memory that can be allocated to the JVM heap | |
sed -i '/#!\/bin\/sh/a export JAVA_OPTS=\"-Xmx1536m\"' filebot.sh | |
# Check if filebot.sh works | |
"$PWD/filebot.sh" -script fn:sysinfo | |
# Link into user $PATH | |
ln -sf "$PWD/filebot.sh" $HOME/bin/filebot | |
# Check if the filebot command works | |
filebot -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment