-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-gui.sh
More file actions
47 lines (40 loc) · 1.46 KB
/
Copy pathbuild-gui.sh
File metadata and controls
47 lines (40 loc) · 1.46 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
#!/bin/bash
# Build script for Secure File Sharing System with GUI
echo "═══════════════════════════════════════════════════"
echo " Building Secure File Sharing System with GUI"
echo "═══════════════════════════════════════════════════"
# Create directories
echo "Creating directories..."
mkdir -p bin
mkdir -p secure_storage
mkdir -p downloads
mkdir -p lib
# Check for SQLite JDBC driver
if [ ! -f "lib/sqlite-jdbc-3.44.1.0.jar" ]; then
echo "Downloading SQLite JDBC driver..."
cd lib
wget https://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.44.1.0/sqlite-jdbc-3.44.1.0.jar
cd ..
fi
# Compile the project
echo "Compiling source files..."
javac -d bin -cp "lib/*" \
src/common/*.java \
src/database/*.java \
src/server/*.java \
src/client/*.java \
src/gui/*.java
if [ $? -eq 0 ]; then
echo "✓ Compilation successful!"
echo ""
echo "To run the application:"
echo " ./run-gui.sh"
echo ""
echo "Or run individual modes:"
echo " Server only: ./run-server.sh"
echo " Client only: ./run-client.sh"
else
echo "✗ Compilation failed!"
exit 1
fi
echo "═══════════════════════════════════════════════════"