Files
TachideskJUI/scripts/SetupUnix.sh
Syer10 c06ea33112 Many Many updates and fixes!
Update to Tachidesk 0.3.7
Update to compose build198
State persistence for the sources menu!
Update setup scripts for using a specific version of Tachidesk
Backup support
Context menu now half works
Server service fixes
Chapter context menu to mark as read and other features
Start screen customization
Extension update and obsolete support
2021-05-19 17:27:48 -04:00

38 lines
950 B
Bash
Executable File

#!/bin/bash
if [ "$(basename "$(pwd)")" = "scripts" ]; then
cd ..
fi
mkdir -p "tmp"
echo "Getting latest Tachidesk build files"
#TARBALL_LINK="$(curl -s "https://api.github.com/repos/Suwayomi/Tachidesk/releases/latest" | grep -o "https.*tarball\/[a-zA-Z0-9.]*")"
#curl -L "$TARBALL_LINK" -o tmp/Tachidesk.tar
curl -L "https://github.com/Suwayomi/Tachidesk/archive/refs/tags/v0.3.7.tar.gz" -o tmp/Tachidesk.tar.gz
tar -xvf tmp/Tachidesk.tar.gz -C tmp
TACHIDESK_FOLDER=$(find tmp -type d -regex ".*Tachidesk-[a-z0-9\.]*")
pushd "$TACHIDESK_FOLDER" || exit
echo "Setting up android.jar"
AndroidCompat/getAndroid.sh
echo "Building Tachidesk.jar"
./gradlew :server:shadowJar -x :webUI:copyBuild
TACHIDESK_JAR=$(find server/build -type f -regex ".*\.jar")
popd || exit
echo "Copying Tachidesk.jar to resources folder..."
mv "$TACHIDESK_FOLDER/$TACHIDESK_JAR" src/main/resources/Tachidesk.jar
echo "Cleaning up..."
rm -rf "tmp"
echo "Done!"