#!/bin/bash
# One-click build script for Linux
# This script installs dependencies and builds the AppImage, snap, deb, rpm, and tar.gz files.

# Navigate to the directory where this script is located
cd "$(dirname "$0")"

echo "========================================"
echo "🐧 GitQuickPush - Linux Build Started"
echo "========================================"
echo ""

echo "📦 Step 1: Installing dependencies..."
npm install

echo ""
echo "🔨 Step 2: Building Linux installers..."
npm run build:linux

echo ""
echo "✅ Build Complete! Check the 'dist' folder for your installers."
echo "========================================"
read -p "Press any key to close..."
