Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

scripts update

tilakpatel226b4893e67460
diff --git a/scripts/setup.bat b/scripts/setup.bat
index ac57603f1..3399c06ed 100644
--- a/scripts/setup.bat
+++ b/scripts/setup.bat
@@ -1,22 +1,16 @@
@echo off
:: Fincept Terminal - Windows Development Environment Setup Script
+:: NO ADMIN REQUIRED - All user-level installations
setlocal enabledelayedexpansion
echo.
echo ========================================
echo Fincept Terminal Setup Script
echo Windows Development Environment
+echo (No Admin Rights Required)
echo ========================================
echo.
-:: Check for admin rights
-net session >nul 2>&1
-if %errorlevel% neq 0 (
- echo [!] Some installations may require admin rights.
- echo Right-click and "Run as Administrator" if needed.
- echo.
-)
-
:: Check for curl
where curl >nul 2>&1
if %errorlevel% neq 0 (
@@ -27,49 +21,120 @@ if %errorlevel% neq 0 (
)
echo [OK] curl available
-:: Check/Install Python
+:: Check/Install Python (User-level only, no admin)
+set "PYTHON_INSTALLED=0"
where python >nul 2>&1
if %errorlevel% equ 0 (
echo [OK] Python already installed
python --version
+ python -m pip install --upgrade pip --user
+ set "PYTHON_INSTALLED=1"
) else (
- echo [..] Installing Python...
+ echo [..] Installing Python 3.12.7 (user-level)...
curl -sSL https://www.python.org/ftp/python/3.12.7/python-3.12.7-amd64.exe -o python-installer.exe
- python-installer.exe /quiet InstallAllUsers=1 PrependPath=1 Include_pip=1
+ if %errorlevel% neq 0 (
+ echo [!!] Failed to download Python installer
+ pause
+ exit /b 1
+ )
+
+ :: Install for current user only (no admin needed)
+ start /wait python-installer.exe /passive InstallAllUsers=0 PrependPath=1 Include_pip=1 Include_test=0
del python-installer.exe
- echo [OK] Python installed - RESTART terminal to use
+ echo [OK] Python installed
+
+ :: Refresh PATH for current session
+ for /f "tokens=2*" %%a in ('reg query "HKCU\Environment" /v Path 2^>nul') do set "USR_PATH=%%b"
+ for /f "tokens=2*" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path 2^>nul') do set "SYS_PATH=%%b"
+ set "PATH=%USR_PATH%;%SYS_PATH%"
+
+ :: Wait a moment for PATH to update
+ timeout /t 2 /nobreak >nul
+
+ :: Verify Python installation
+ where python >nul 2>&1
+ if %errorlevel% equ 0 (
+ python -m pip install --upgrade pip --user
+ set "PYTHON_INSTALLED=1"
+ ) else (
+ echo [!!] Python installed but not in PATH. Restart terminal and re-run script.
+ pause
+ exit /b 1
+ )
)
-:: Set PYO3_PYTHON
-for /f "delims=" %%i in ('where python') do set "PYO3_PYTHON=%%i" & goto :found_python
+:: Set PYO3_PYTHON (user environment variable only)
+for /f "delims=" %%i in ('where python 2^>nul') do set "PYO3_PYTHON=%%i" & goto :found_python
:found_python
-setx PYO3_PYTHON "%PYO3_PYTHON%" >nul 2>&1
-echo [OK] PYO3_PYTHON set to %PYO3_PYTHON%
+if defined PYO3_PYTHON (
+ :: Set user environment variable (no admin needed)
+ reg add "HKCU\Environment" /v PYO3_PYTHON /t REG_SZ /d "%PYO3_PYTHON%" /f >nul 2>&1
+ echo [OK] PYO3_PYTHON set to %PYO3_PYTHON%
+) else (
+ echo [!!] Failed to set PYO3_PYTHON
+ pause
+ exit /b 1
+)
:: Check/Install Rust
+set "RUST_INSTALLED=0"
where rustc >nul 2>&1
if %errorlevel% equ 0 (
echo [OK] Rust already installed
rustc --version
+ set "RUST_INSTALLED=1"
) else (
echo [..] Installing Rust...
curl -sSf https://win.rustup.rs/x86_64 -o rustup-init.exe
- rustup-init.exe -y
+ if %errorlevel% neq 0 (
+ echo [!!] Failed to download Rust installer
+ pause
+ exit /b 1
+ )
+ start /wait rustup-init.exe -y --default-toolchain stable
del rustup-init.exe
+
+ :: Add to current session PATH
set "PATH=%USERPROFILE%\.cargo\bin;%PATH%"
- echo [OK] Rust installed
+
+ :: Verify Rust installation
+ where rustc >nul 2>&1
+ if %errorlevel% equ 0 (
+ echo [OK] Rust installed
+ rustc --version
+ set "RUST_INSTALLED=1"
+ ) else (
+ echo [!!] Rust installed but not in PATH. Restart terminal and re-run script.
+ pause
+ exit /b 1
+ )
)
:: Check/Install Bun
+set "BUN_INSTALLED=0"
where bun >nul 2>&1
if %errorlevel% equ 0 (
echo [OK] Bun already installed
bun --version
+ set "BUN_INSTALLED=1"
) else (
echo [..] Installing Bun...
- powershell -Command "irm bun.sh/install.ps1 | iex"
+ powershell -ExecutionPolicy Bypass -Command "irm bun.sh/install.ps1 | iex"
+
+ :: Add to current session PATH
set "PATH=%USERPROFILE%\.bun\bin;%PATH%"
- echo [OK] Bun installed
+
+ :: Verify Bun installation
+ where bun >nul 2>&1
+ if %errorlevel% equ 0 (
+ echo [OK] Bun installed
+ bun --version
+ set "BUN_INSTALLED=1"
+ ) else (
+ echo [!!] Bun installed but not in PATH. Restart terminal and re-run script.
+ pause
+ exit /b 1
+ )
)
:: Check for Visual Studio Build Tools
@@ -77,34 +142,100 @@ where cl >nul 2>&1
if %errorlevel% neq 0 (
echo.
echo [!!] Visual Studio Build Tools not found!
+ echo This is REQUIRED for Tauri to build!
echo Download from: https://visualstudio.microsoft.com/visual-cpp-build-tools/
echo Select "Desktop development with C++" workload
+ echo OR install via winget (no admin): winget install Microsoft.VisualStudio.2022.BuildTools
echo.
- pause
+ set /p CONTINUE="Continue anyway? (y/N): "
+ if /i not "!CONTINUE!"=="y" exit /b 1
+) else (
+ echo [OK] Visual Studio Build Tools found
)
-:: Check for WebView2
+:: Check for WebView2 Runtime
reg query "HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}" >nul 2>&1
-if %errorlevel% neq 0 (
- echo.
- echo [!!] WebView2 Runtime not found!
- echo Download from: https://developer.microsoft.com/microsoft-edge/webview2/
- echo.
+if %errorlevel% equ 0 (
+ echo [OK] WebView2 Runtime found
+) else (
+ reg query "HKCU\SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}" >nul 2>&1
+ if %errorlevel% equ 0 (
+ echo [OK] WebView2 Runtime found (user install)
+ ) else (
+ echo.
+ echo [!!] WebView2 Runtime not found!
+ echo This is REQUIRED for Tauri apps on Windows!
+ echo Downloading WebView2 Runtime (user install)...
+ curl -sSL "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -o webview2_installer.exe
+ if %errorlevel% equ 0 (
+ :: Try user-level install first (no admin)
+ start /wait webview2_installer.exe /install
+ del webview2_installer.exe
+ echo [OK] WebView2 Runtime installed
+ ) else (
+ echo [!!] Failed to download WebView2
+ echo Download manually: https://developer.microsoft.com/microsoft-edge/webview2/
+ echo Or it will be installed when you first run the app
+ echo.
+ )
+ )
+)
+
+:: Navigate to project directory
+echo.
+echo [..] Navigating to project directory...
+cd /d "%~dp0.."
+if exist "fincept-terminal-desktop" (
+ cd fincept-terminal-desktop
+ echo [OK] Found fincept-terminal-desktop directory
+) else (
+ echo [!!] fincept-terminal-desktop directory not found!
+ echo Current directory: %CD%
+ pause
+ exit /b 1
)
:: Install project dependencies
echo.
echo [..] Installing project dependencies...
-cd /d "%~dp0..\fincept-terminal-desktop"
-if not exist "fincept-terminal-desktop" cd /d "%~dp0.."
call bun install
+if %errorlevel% neq 0 (
+ echo [!!] Failed to install dependencies with bun
+ pause
+ exit /b 1
+)
+echo [OK] Dependencies installed
+
+echo [..] Adding Tauri CLI...
call bun add -d @tauri-apps/cli
+if %errorlevel% neq 0 (
+ echo [!!] Failed to add Tauri CLI
+ pause
+ exit /b 1
+)
+echo [OK] Tauri CLI added
+
+:: Install Python packages for analytics (user-level only)
+echo.
+echo [..] Installing Python packages for analytics...
+python -m pip install --upgrade pip setuptools wheel --user
+python -m pip install pandas numpy yfinance requests langchain-ollama ccxt sqlalchemy --user
+if %errorlevel% neq 0 (
+ echo [!] Some packages failed to install, but continuing...
+)
+echo [OK] Python packages installed
echo.
echo ========================================
echo Setup Complete!
-echo Run: cd fincept-terminal-desktop
-echo bun run tauri:dev
+echo ========================================
+echo.
+echo Next steps:
+echo 1. RESTART your terminal to ensure PATH is updated
+echo 2. cd fincept-terminal-desktop
+echo 3. bun run tauri:dev
+echo.
+echo Note: If commands not found, restart terminal first!
echo ========================================
echo.
pause
diff --git a/scripts/setup.sh b/scripts/setup.sh
index 8c275362f..e90d7d862 100644
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -1,6 +1,7 @@
#!/bin/bash
# Fincept Terminal - Development Environment Setup Script
# Supports: Linux (Ubuntu/Debian/Fedora/Arch), macOS
+# NO SUDO REQUIRED - All user-level installations
set -e
@@ -8,6 +9,7 @@ echo ""
echo "========================================"
echo " Fincept Terminal Setup Script"
echo " Linux / macOS Development Environment"
+echo " (No Sudo/Admin Required)"
echo "========================================"
echo ""
@@ -24,64 +26,146 @@ detect_distro() {
[ -f /etc/os-release ] && . /etc/os-release && echo $ID || echo "unknown"
}
-# Install Linux dependencies
-install_linux() {
+# Check Linux dependencies (no installation, just verification)
+check_linux_deps() {
DISTRO=$(detect_distro)
- echo "Installing dependencies for $DISTRO..."
- case $DISTRO in
- ubuntu|debian|pop)
- sudo apt update
- # Check Ubuntu version - Tauri 2.x requires Ubuntu 22.04+
- VERSION=$(lsb_release -rs 2>/dev/null | cut -d. -f1)
- if [ "$VERSION" -lt 22 ] 2>/dev/null; then
- echo ""
- echo "ERROR: Ubuntu $VERSION is not supported!"
- echo "Tauri 2.x requires Ubuntu 22.04+ (glib 2.70+)"
- echo "Please upgrade to Ubuntu 22.04 or newer."
- echo ""
- exit 1
- fi
- # Ubuntu/Debian 22.04+ dependencies
- sudo apt install -y libwebkit2gtk-4.1-dev build-essential curl wget \
- file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev \
- pkg-config libgtk-3-dev libglib2.0-dev libsoup-3.0-dev \
- libjavascriptcoregtk-4.1-dev python3 python3-dev python3-venv
- # Set PYO3_PYTHON
- export PYO3_PYTHON=$(which python3)
- echo "export PYO3_PYTHON=$(which python3)" >> ~/.bashrc ;;
- fedora)
- sudo dnf check-update || true
- sudo dnf install -y webkit2gtk4.1-devel openssl-devel curl wget file \
- libappindicator-gtk3-devel librsvg2-devel libxdo-devel \
- python3 python3-devel
- sudo dnf group install -y "C Development Tools and Libraries"
- export PYO3_PYTHON=$(which python3)
- echo "export PYO3_PYTHON=$(which python3)" >> ~/.bashrc ;;
- arch|manjaro)
- sudo pacman -Syu --noconfirm
- sudo pacman -S --needed --noconfirm webkit2gtk-4.1 base-devel curl wget \
- file openssl appmenu-gtk-module libappindicator-gtk3 librsvg xdotool python
- export PYO3_PYTHON=$(which python3)
- echo "export PYO3_PYTHON=$(which python3)" >> ~/.bashrc ;;
- *) echo "Unknown distro. Install manually: build-essential gtk3 webkit2gtk libssl" ;;
- esac
+ echo "Checking dependencies for $DISTRO..."
+
+ # Check Ubuntu version
+ if [ "$DISTRO" = "ubuntu" ] || [ "$DISTRO" = "debian" ] || [ "$DISTRO" = "pop" ]; then
+ VERSION=$(lsb_release -rs 2>/dev/null | cut -d. -f1)
+ if [ "$VERSION" -lt 22 ] 2>/dev/null; then
+ echo ""
+ echo "ERROR: Ubuntu $VERSION is not supported!"
+ echo "Tauri 2.x requires Ubuntu 22.04+ (glib 2.70+)"
+ echo "Please upgrade to Ubuntu 22.04 or newer."
+ echo ""
+ exit 1
+ fi
+ fi
+
+ # Check for essential tools
+ MISSING_DEPS=""
+
+ if ! command -v gcc &>/dev/null; then
+ MISSING_DEPS="$MISSING_DEPS gcc"
+ fi
+
+ if ! command -v pkg-config &>/dev/null; then
+ MISSING_DEPS="$MISSING_DEPS pkg-config"
+ fi
+
+ if ! command -v python3 &>/dev/null; then
+ MISSING_DEPS="$MISSING_DEPS python3"
+ fi
+
+ if [ -n "$MISSING_DEPS" ]; then
+ echo ""
+ echo "[!!] Missing system dependencies:$MISSING_DEPS"
+ echo ""
+ echo "Please install them using your package manager:"
+ case $DISTRO in
+ ubuntu|debian|pop)
+ echo " sudo apt install -y build-essential pkg-config libssl-dev python3 python3-pip"
+ echo " sudo apt install -y libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev"
+ ;;
+ fedora)
+ echo " sudo dnf install -y gcc pkg-config openssl-devel python3 python3-pip"
+ echo " sudo dnf install -y webkit2gtk4.1-devel gtk3-devel"
+ ;;
+ arch|manjaro)
+ echo " sudo pacman -S base-devel pkg-config openssl python python-pip"
+ echo " sudo pacman -S webkit2gtk-4.1 gtk3"
+ ;;
+ esac
+ echo ""
+ echo "After installing dependencies, re-run this script."
+ echo ""
+ exit 1
+ fi
+
+ echo "[OK] Essential build tools found"
+
+ # Setup Python
+ if command -v python3 &>/dev/null; then
+ python3 -m pip install --upgrade pip setuptools wheel --user 2>/dev/null || echo "[!] Pip upgrade skipped"
+
+ PYTHON_PATH=$(which python3)
+ export PYO3_PYTHON="$PYTHON_PATH"
+ if ! grep -q "export PYO3_PYTHON=" ~/.bashrc 2>/dev/null; then
+ echo "export PYO3_PYTHON=\"$PYTHON_PATH\"" >> ~/.bashrc
+ fi
+ echo "[OK] PYO3_PYTHON set to $PYTHON_PATH"
+ fi
}
-# Install macOS dependencies
-install_mac() {
- echo "Installing macOS dependencies..."
- command -v brew &>/dev/null || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- xcode-select --install 2>/dev/null || true
+# Setup macOS (no admin required, uses Homebrew)
+setup_mac() {
+ echo "Setting up macOS dependencies..."
+
+ # Install Homebrew if not present (no sudo needed)
+ if ! command -v brew &>/dev/null; then
+ echo "[..] Installing Homebrew (no admin required)..."
+ NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+
+ # Add Homebrew to PATH for current session
+ if [ -f "/opt/homebrew/bin/brew" ]; then
+ eval "$(/opt/homebrew/bin/brew shellenv)"
+ elif [ -f "/usr/local/bin/brew" ]; then
+ eval "$(/usr/local/bin/brew shellenv)"
+ fi
+
+ # Verify installation
+ if ! command -v brew &>/dev/null; then
+ echo "[!!] Homebrew installation failed"
+ exit 1
+ fi
+ fi
+ echo "[OK] Homebrew: $(brew --version | head -n1)"
+
+ # Check for Xcode Command Line Tools
+ if ! xcode-select -p &>/dev/null; then
+ echo ""
+ echo "[!!] Xcode Command Line Tools not found!"
+ echo " These are REQUIRED for building Rust/Tauri apps."
+ echo ""
+ echo "Install with: xcode-select --install"
+ echo "(This may require admin password)"
+ echo ""
+ echo "After installing, re-run this script."
+ exit 1
+ fi
+ echo "[OK] Xcode Command Line Tools installed"
+
+ # Install Python 3.12 if not present
+ if ! command -v python3 &>/dev/null || ! brew list [email protected] &>/dev/null; then
+ echo "[..] Installing Python 3.12 via Homebrew..."
+ brew install [email protected]
+ fi
+
+ # Use Homebrew Python
+ if brew --prefix [email protected] &>/dev/null; then
+ PYTHON_PATH="$(brew --prefix [email protected])/bin/python3.12"
+ echo "[OK] Python 3.12: $(brew list --versions [email protected])"
+ else
+ PYTHON_PATH=$(which python3)
+ echo "[OK] Python 3: $(python3 --version)"
+ fi
- # Install Python 3.12 for PyO3
- brew install [email protected]
+ # Upgrade pip (user-level)
+ $PYTHON_PATH -m pip install --upgrade pip setuptools wheel --user 2>/dev/null || echo "[!] Pip upgrade skipped"
# Set Python environment for PyO3
- PYTHON_PATH=$(brew --prefix [email protected])
- export PYO3_PYTHON="$PYTHON_PATH/bin/python3.12"
- echo "export PYO3_PYTHON=\"$PYTHON_PATH/bin/python3.12\"" >> ~/.zshrc
- echo "export PYO3_PYTHON=\"$PYTHON_PATH/bin/python3.12\"" >> ~/.bashrc
- echo "[OK] Python configured for PyO3: $PYO3_PYTHON"
+ export PYO3_PYTHON="$PYTHON_PATH"
+
+ # Add to shell configs
+ for shellrc in ~/.zshrc ~/.bashrc; do
+ touch "$shellrc"
+ if ! grep -q "export PYO3_PYTHON=" "$shellrc"; then
+ echo "export PYO3_PYTHON=\"$PYTHON_PATH\"" >> "$shellrc"
+ fi
+ done
+ echo "[OK] PYO3_PYTHON set to $PYO3_PYTHON"
}
# Install Rust
@@ -90,8 +174,20 @@ install_rust() {
echo "[OK] Rust: $(rustc --version)"
else
echo "[..] Installing Rust..."
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- source "$HOME/.cargo/env"
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
+
+ # Source cargo environment for current session
+ if [ -f "$HOME/.cargo/env" ]; then
+ source "$HOME/.cargo/env"
+ fi
+
+ # Verify installation
+ if command -v rustc &>/dev/null; then
+ echo "[OK] Rust installed: $(rustc --version)"
+ else
+ echo "[!!] Rust installed but not in PATH. Restart terminal and re-run script."
+ exit 1
+ fi
fi
}
@@ -102,45 +198,136 @@ install_bun() {
else
echo "[..] Installing Bun..."
curl -fsSL https://bun.sh/install | bash
- export BUN_INSTALL="$HOME/.bun" && export PATH="$BUN_INSTALL/bin:$PATH"
+
+ # Source bun environment for current session
+ export BUN_INSTALL="$HOME/.bun"
+ export PATH="$BUN_INSTALL/bin:$PATH"
+
+ # Add to shell configs
+ for shellrc in ~/.bashrc ~/.zshrc; do
+ if [ -f "$shellrc" ]; then
+ if ! grep -q "BUN_INSTALL=" "$shellrc"; then
+ echo 'export BUN_INSTALL="$HOME/.bun"' >> "$shellrc"
+ echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> "$shellrc"
+ fi
+ fi
+ done
+
+ # Verify installation
+ if command -v bun &>/dev/null; then
+ echo "[OK] Bun installed: $(bun --version)"
+ else
+ echo "[!!] Bun installed but not in PATH. Restart terminal and re-run script."
+ exit 1
+ fi
fi
}
-# Ensure curl is installed
-ensure_curl() {
+# Check for curl (should be pre-installed)
+check_curl() {
if ! command -v curl &>/dev/null; then
- echo "[..] Installing curl..."
- case "$OS" in
- linux)
- sudo apt install -y curl 2>/dev/null || sudo dnf install -y curl 2>/dev/null || sudo pacman -S --noconfirm curl
- ;;
- mac)
- echo "curl should be pre-installed on macOS"
- ;;
- esac
+ echo ""
+ echo "[!!] curl not found!"
+ echo " curl is required for downloading dependencies."
+ echo ""
+ if [ "$OS" = "linux" ]; then
+ echo "Install with: sudo apt install curl (or dnf/pacman)"
+ else
+ echo "curl should be pre-installed on macOS"
+ fi
+ echo ""
+ exit 1
fi
echo "[OK] curl available"
}
-# Main
-ensure_curl
-[ "$OS" = "linux" ] && install_linux || install_mac
+# Install Python packages
+install_python_packages() {
+ echo ""
+ echo "[..] Installing Python packages for analytics..."
+
+ if [ "$OS" = "mac" ]; then
+ PYTHON_CMD="$(brew --prefix [email protected])/bin/python3.12"
+ else
+ PYTHON_CMD="python3"
+ fi
+
+ $PYTHON_CMD -m pip install --upgrade pip setuptools wheel --user
+ $PYTHON_CMD -m pip install pandas numpy yfinance requests langchain-ollama ccxt sqlalchemy --user
+
+ echo "[OK] Python packages installed"
+}
+
+# Main execution
+check_curl
+
+# Check/Setup platform-specific dependencies
+if [ "$OS" = "linux" ]; then
+ check_linux_deps
+else
+ setup_mac
+fi
+
install_rust
install_bun
-# Ensure bun and rust are in PATH
+# Ensure bun and rust are in PATH for current session
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$HOME/.cargo/bin:$PATH"
-echo "[..] Installing project dependencies..."
+# Install Python packages
+install_python_packages
+
+# Navigate to project directory
+echo ""
+echo "[..] Navigating to project directory..."
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
-cd "$SCRIPT_DIR/../fincept-terminal-desktop" 2>/dev/null || cd "$SCRIPT_DIR/.."
-bun install
-bun add -d @tauri-apps/cli
+if [ -d "$SCRIPT_DIR/../fincept-terminal-desktop" ]; then
+ cd "$SCRIPT_DIR/../fincept-terminal-desktop"
+ echo "[OK] Found fincept-terminal-desktop directory"
+elif [ -d "$SCRIPT_DIR/.." ]; then
+ cd "$SCRIPT_DIR/.."
+ if [ ! -f "package.json" ]; then
+ echo "[!!] fincept-terminal-desktop directory not found!"
+ echo " Current directory: $(pwd)"
+ exit 1
+ fi
+else
+ echo "[!!] Could not find project directory!"
+ exit 1
+fi
+
+# Install project dependencies
+echo ""
+echo "[..] Installing project dependencies..."
+if ! bun install; then
+ echo "[!!] Failed to install dependencies with bun"
+ exit 1
+fi
+echo "[OK] Dependencies installed"
+
+echo "[..] Adding Tauri CLI..."
+if ! bun add -d @tauri-apps/cli; then
+ echo "[!!] Failed to add Tauri CLI"
+ exit 1
+fi
+echo "[OK] Tauri CLI added"
echo ""
echo "========================================"
echo " Setup Complete!"
-echo " Run: cd fincept-terminal-desktop"
-echo " bun run tauri:dev"
echo "========================================"
+echo ""
+echo "Next steps:"
+echo " 1. RESTART your terminal or run:"
+if [ "$OS" = "linux" ]; then
+ echo " source ~/.bashrc"
+else
+ echo " source ~/.zshrc # or source ~/.bashrc"
+fi
+echo " 2. cd fincept-terminal-desktop"
+echo " 3. bun run tauri:dev"
+echo ""
+echo "Note: If commands not found, restart terminal first!"
+echo "========================================"
+echo ""