feat: add self-contained offline development resources
Some checks failed
real-verification / chrome (push) Has been cancelled
real-verification / freecad-oracle (push) Has been cancelled
real-verification / wasm (push) Has been cancelled

This commit is contained in:
2026-08-12 02:36:09 -04:00
parent 97967041e2
commit ca6fe46030
14 changed files with 1102 additions and 12 deletions

View File

@@ -2,8 +2,22 @@
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
OCCT_SOURCE_DIR="${OCCT_SOURCE_DIR:-/home/mes123456/working/WebCam/occt}"
OCCT_BUILD_DIR="${OCCT_BUILD_DIR:-${ROOT_DIR}/.cache/bitbybit/occt-history-build}"
LOCAL_OCCT_SOURCE_DIR="${ROOT_DIR}/.cache/occt/occt"
LEGACY_OCCT_SOURCE_DIR="/home/mes123456/working/WebCam/occt"
if [[ -z "${OCCT_SOURCE_DIR:-}" ]]; then
if [[ -f "${LOCAL_OCCT_SOURCE_DIR}/CMakeLists.txt" ]]; then
OCCT_SOURCE_DIR="${LOCAL_OCCT_SOURCE_DIR}"
else
OCCT_SOURCE_DIR="${LEGACY_OCCT_SOURCE_DIR}"
fi
fi
if [[ -z "${OCCT_BUILD_DIR:-}" ]]; then
if [[ "${OCCT_SOURCE_DIR}" == "${LOCAL_OCCT_SOURCE_DIR}" ]]; then
OCCT_BUILD_DIR="${ROOT_DIR}/.cache/bitbybit/occt-history-build-offline"
else
OCCT_BUILD_DIR="${ROOT_DIR}/.cache/bitbybit/occt-history-build"
fi
fi
DIST_DIR="${OCCT_HISTORY_DIST_DIR:-${ROOT_DIR}/native/occt-history/dist}"
PUBLIC_DIR="${OCCT_HISTORY_PUBLIC_DIR:-${ROOT_DIR}/public/native/occt-history}"
JOBS="${JOBS:-$(nproc)}"