migration: prefer ./external for RTI/ArcGIS; detect RTI arch in FindRTI; install/unpack ArcGIS into ./external

This commit is contained in:
Copilot authored and Torsten Wierschin committed 2026-07-20 12:48:23 +02:00
1 parent fe78be0afa
commit 7c080db59f
4 files changed
+42 -18

No files matched your search

+9 -3
View File
@@ -6,7 +6,8 @@ set -euo pipefail
# Expects the zip at ../ArcGIS_Maps_SDK_Qt_linux_300.0.0.zip relative to repo root
ZIP_PATH="${1:-../ArcGIS_Maps_SDK_Qt_linux_300.0.0.zip}"
TARGET_DIR="/opt/ArcGIS/MapsSDK_Qt_300.0.0"
# Install into repo-local external by default so SDKs are colocated with RTI under ./external
TARGET_DIR="${2:-./external/ArcGIS/MapsSDK_Qt_300.0.0}"
if [[ ! -f "$ZIP_PATH" ]]; then
echo "ArcGIS zip not found at $ZIP_PATH"
@@ -14,8 +15,13 @@ if [[ ! -f "$ZIP_PATH" ]]; then
exit 1
fi
sudo mkdir -p "$TARGET_DIR"
sudo chown $(id -u):$(id -g) "$TARGET_DIR"
# Create target dir, prefer non-root but fall back to sudo when necessary
if ! mkdir -p "$TARGET_DIR" 2>/dev/null; then
sudo mkdir -p "$TARGET_DIR"
fi
if ! chown $(id -u):$(id -g) "$TARGET_DIR" 2>/dev/null; then
sudo chown $(id -u):$(id -g) "$TARGET_DIR" || true
fi
echo "Extracting $ZIP_PATH to $TARGET_DIR..."
unzip -q "$ZIP_PATH" -d "$TARGET_DIR"