1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-14 18:26:17 +00:00

feat: add option to disable OCR (#768)

fixes #344
refs #767
This commit is contained in:
Alexander ADAM
2024-09-07 22:27:48 +02:00
committed by GitHub
parent 8f1ff56d34
commit c2d7f3ebc6
16 changed files with 221 additions and 62 deletions

41
scripts/dev_setup.sh Executable file
View File

@@ -0,0 +1,41 @@
#!/bin/bash
install_macos_dependencies() {
brew install openjdk@11
export JAVA_HOME=/usr/local/opt/openjdk@11
brew install maven
brew install node
npm install -g grunt-cli
brew install tesseract
brew install ffmpeg
brew install mediainfo
}
install_ubuntu_debian_dependencies() {
sudo apt update
sudo apt install -y openjdk-11-jdk maven nodejs npm tesseract-ocr ffmpeg mediainfo
sudo npm install -g grunt-cli
}
install_fedora_dependencies() {
sudo dnf install -y java-11-openjdk-devel maven nodejs npm tesseract ffmpeg mediainfo
sudo npm install -g grunt-cli
}
echo "📥 Installing dependencies"
if [[ "$OSTYPE" == "darwin"* ]]; then
install_macos_dependencies
elif [[ -f /etc/debian_version ]]; then
install_ubuntu_debian_dependencies
elif [[ -f /etc/fedora-release ]]; then
install_fedora_dependencies
else
echo "❔ Unsupported OS. Feel free to contribute!"
exit 1
fi
echo "✅ Dependencies installed."
mvn clean -DskipTests install
echo "You can start the server with 'mvn jetty:run' and then access it at http://localhost:8080/docs-web/src/"