Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

746 B
Raw Blame
#!/bin/bash
# Platform installer dispatch.

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "$SCRIPT_DIR/installers/common.sh"

resolve_installer_target() {
    local platform
    platform="$(detect_platform)"

    case "$platform" in
        android-termux|ios-ashell)
            echo "$SCRIPT_DIR/installers/mobile/install-mobile.sh"
            ;;
        linux|wsl)
            echo "$SCRIPT_DIR/install-core.sh"
            ;;
        windows)
            echo "$SCRIPT_DIR/installers/windows/install-windows.ps1"
            ;;
        macos)
            echo "$SCRIPT_DIR/installers/macos/install-macos.sh"
            ;;
        *)
            echo "unsupported:unknown"
            ;;
    esac
}