File size: 1,405 Bytes
1ef4f1b 119074b 1ef4f1b 119074b 1ef4f1b 119074b 1ef4f1b 318350a 119074b b93a0a8 119074b 318350a b93a0a8 318350a 1ef4f1b 119074b 1ef4f1b | 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
# Linh Huong Office - Linux Build Script
echo "=========================================="
echo "🐧 Building LinhHuong Office for Linux"
echo "=========================================="
# 1. Install System Dependencies (requires sudo)
echo "Installing necessary Linux system libraries..."
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
# 2. Install Node.js dependencies
echo "Installing Node.js dependencies..."
pnpm install
# 3. Build Tauri Apps sequentially and gather DEB immediately
echo "Starting Tauri Build for ALL applications..."
ROOT_DIR=$(pwd)
DIST_DIR="$ROOT_DIR/dist_releases/Linux"
mkdir -p "$DIST_DIR"
for app_dir in apps/*; do
if [ -d "$app_dir/src-tauri" ]; then
echo "Building $app_dir..."
(cd "$app_dir" && pnpm tauri build)
MSI_PATH="$ROOT_DIR/target/release/bundle/deb"
if ls "$MSI_PATH"/*.deb 1> /dev/null 2>&1; then
cp "$MSI_PATH"/*.deb "$DIST_DIR/"
echo "✅ Copied DEB for $(basename $app_dir)"
else
echo "⚠️ Warning: No DEB found for $(basename $app_dir) in $MSI_PATH"
fi
fi
done
echo "=========================================="
echo "✅ Linux Build Complete!"
echo "📁 Your .deb packages are located in: dist_releases/Linux/"
echo "=========================================="
|