Skip to content

Instantly share code, notes, and snippets.

@tylerforesthauser
Last active January 31, 2020 22:31
Show Gist options
  • Save tylerforesthauser/123ad1d1dc9433664cb7c6d5718d1225 to your computer and use it in GitHub Desktop.
Save tylerforesthauser/123ad1d1dc9433664cb7c6d5718d1225 to your computer and use it in GitHub Desktop.

If you'd like to run the latest beta version of FileBot (4.9.0 as of 1/30/2020) and you've purchased a license, you can install it using the instructions below:

  1. mkdir filebot-beta-portable && cd filebot-beta-portable
  2. sh -xu <<< "$(curl -fsSL https://gist.githubusercontent.com/tylerforesthauser/123ad1d1dc9433664cb7c6d5718d1225/raw/b0b19388be1b447cd24048fce2a905d8df923bef/filebot-beta-installer.sh)"
  3. filebot --license /path/to/FileBot_License_P1234567.psm

Nothing more needs to be done. If you're using FileBot for your torrent client post-processing, that will now use this version of FileBot as well. Enjoy!

Note: You will very likely need to update Java for this version of FileBot. Download and unarchive OpenJDK 11: wget https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz && tar xvf openjdk-11*_bin.tar.gz

Add absolute path for Java 11 to filebot.sh: Change last line from beginning with java to something like /home/user/jdk-11/bin/java

#!/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.tar.xz.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-beta
# Check if the filebot command works
filebot-beta -version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment