SPB Git

Repository Public

build.sh 2.2 KB 60 lines shellscript

1#!/bin/sh2# =============================================================================3#                  SP BOUCHER | SOFTWARE & RESEARCH4#             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project          : SPIDER — Universal Web Intelligence Engine8# File             : services/ocr-worker/build.sh9# Module           : Services10# Repository       : https://git.spboucher.ai/spider11# Project Website  : Not specified12# Created          : 2026-12-0413# Last Modified    : 2026-12-0414#15# Author           : Simon-Pierre Boucher16# Position         : Professor of Finance17# Institution      : Université du Québec en Outaouais (UQO)18# Organization     : SP Boucher19# Website          : https://spboucher.ai20# Git              : https://git.spboucher.ai21#22# Preferred Contact: contact@spboucher.ai23# Development      : dev@spboucher.ai24# Support          : support@spboucher.ai25# Security/Admin   : admin@spboucher.ai26#27# Copyright (c) 202628# Simon-Pierre Boucher29# All rights reserved where applicable. This file is governed by the30# applicable project license, copyright notices and relevant law.31# Existing third-party rights and notices remain unaffected.32#33# License          : ISC34#35# Do not embed credentials, private keys, access tokens,36# certificates or confidential personal information.37#38# =============================================================================39# END OF SP BOUCHER SOURCE HEADER40# =============================================================================4142# Build the spider-ocr worker (release) and optionally install it in ~/.spider/bin.43#   ./build.sh            -> services/ocr-worker/.build/release/spider-ocr44#   ./build.sh --install  -> also copies the binary to ~/.spider/bin/spider-ocr45set -eu46cd "$(dirname "$0")"47if [ "$(uname -s)" != "Darwin" ]; then48    echo "spider-ocr needs macOS (Apple Vision)" >&249    exit 150fi51swift build -c release52bin=".build/release/spider-ocr"53"$bin" --version54if [ "${1:-}" = "--install" ]; then55    mkdir -p "$HOME/.spider/bin"56    cp "$bin" "$HOME/.spider/bin/spider-ocr"57    echo "installed: $HOME/.spider/bin/spider-ocr"58fi59echo "built: $(pwd)/$bin"60
Files main
Menu

Theme