-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
42 lines (34 loc) · 1.11 KB
/
Copy pathinstall.sh
File metadata and controls
42 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# JXL-Pure Quick Installer
# This script installs JXL-Pure to /usr/local/bin
set -e
REPO_URL="https://raw.githubusercontent.com/void0x14/JXL-Pure/main"
INSTALL_DIR="/usr/local/bin"
echo "💎 JXL-Pure Installer"
echo "----------------------"
# Check for dependencies
echo "Checking dependencies..."
for cmd in fd cjxl curl; do
if ! command -v "$cmd" &>/dev/null; then
echo "Error: '$cmd' is not installed."
if [ -f /etc/arch-release ]; then
echo "Try: sudo pacman -S fd libjxl curl"
elif [ -f /etc/debian_version ]; then
echo "Try: sudo apt install fd-find libjxl-tools curl"
fi
exit 1
fi
done
# Download scripts
echo "Downloading scripts..."
curl -sSL "$REPO_URL/jxl-pure.sh" -o jxl-pure
curl -sSL "$REPO_URL/convert.fish" -o jxl-pure-fish
chmod +x jxl-pure jxl-pure-fish
# Install
echo "Installing to $INSTALL_DIR (requires sudo)..."
sudo mv jxl-pure jxl-pure-fish "$INSTALL_DIR/"
echo "----------------------"
echo "✅ JXL-Pure installed successfully!"
echo "Usage:"
echo " Bash: jxl-pure [directory]"
echo " Fish: jxl-pure-fish [directory]"