forked from Jack000/Expose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·70 lines (61 loc) · 2.18 KB
/
setup.sh
File metadata and controls
executable file
·70 lines (61 loc) · 2.18 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env bash
echo "🚀 Installing Expose dependencies..."
# Update package list
sudo apt-get -y update
# Core image processing tools
echo "📸 Installing image processing tools..."
sudo apt-get install -y libvips-tools
sudo apt-get install -y exiftool
# File synchronization
echo "📁 Installing file sync tools..."
sudo apt-get install -y rsync
# JSON processing
echo "🔧 Installing JSON processor..."
sudo apt-get install -y jq
# OneDrive API dependencies
echo "☁️ Installing OneDrive sync dependencies..."
sudo apt-get install -y curl
# Markdown processing (optional but recommended)
echo "📝 Installing Perl for Markdown processing..."
sudo apt-get install -y perl
# Math calculations
echo "🧮 Installing calculator..."
sudo apt-get install -y bc
echo ""
echo "✅ All dependencies installed successfully!"
echo ""
echo "🔧 Setting execute permissions for scripts..."
chmod +x expose.sh
chmod +x deploy.sh
chmod +x onedrive.sh
chmod +x cleanup.sh
chmod +x new-project.sh
echo ""
echo "📦 Installed versions:"
echo " VIPS: $(vips --version 2>/dev/null | head -1 || echo 'not found')"
echo " ExifTool: $(exiftool -ver 2>/dev/null || echo 'not found')"
echo " rsync: $(rsync --version 2>/dev/null | head -1 | awk '{print $3}' || echo 'not found')"
echo " jq: $(jq --version 2>/dev/null || echo 'not found')"
echo " curl: $(curl --version 2>/dev/null | head -1 | awk '{print $2}' || echo 'not found')"
echo " Perl: $(perl -v 2>/dev/null | grep -oP 'v\d+\.\d+\.\d+' | head -1 || echo 'not found')"
echo " bc: $(bc --version 2>/dev/null | head -1 | awk '{print $2}' || echo 'not found')"
echo ""
echo "⚙️ Performance optimizations:"
echo " VIPS_CONCURRENCY=1 (prevents segfaults)"
echo " Parallel processing: auto-detected based on CPU cores"
echo ""
echo "🎯 Next steps:"
echo ""
echo "1️⃣ Create a new project:"
echo " ./new-project.sh"
echo ""
echo "2️⃣ Generate your site:"
echo " ./expose.sh -p <project-name>"
echo ""
echo "3️⃣ Optional - Sync from OneDrive:"
echo " ./onedrive.sh -p <project-name>"
echo ""
echo "4️⃣ Optional - Deploy to server:"
echo " ./deploy.sh -p <project-name>"
echo ""
echo "📚 See QUICKSTART.md for detailed guide"