tamhonvotri
chore: reset corrupted LFS history, update README links to HuggingFace, fix scripts
b93a0a8 Download scripts/build_linux.sh from linhhuonglinux/linhhuonglinux-office: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/scripts/build_linux.sh
- Command line
-
hf download hf://linhhuonglinux/linhhuonglinux-office/scripts/build_linux.sh
-
curl -L -o build_linux.sh https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/scripts/build_linux.sh
1.41 kB
| # 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 "==========================================" | |