Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/landing/public/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ curl -fSL --progress-bar "$DOWNLOAD_URL" -o "$DMG_PATH"

# ── Mount & copy ──
info "Installing to ${INSTALL_DIR}..."
MOUNT_POINT=$(hdiutil attach "$DMG_PATH" -nobrowse -quiet | tail -1 | sed 's/.* //')
MOUNT_POINT=$(hdiutil attach "$DMG_PATH" -nobrowse | tail -1 | sed 's/.* //')
[[ -n "$MOUNT_POINT" ]] || err "Failed to resolve mount point."
[[ -d "${MOUNT_POINT}/${APP_NAME}" ]] || err "Mounted DMG does not contain ${APP_NAME}."

# Remove old version if exists
if [[ -d "${INSTALL_DIR}/${APP_NAME}" ]]; then
Expand All @@ -47,7 +49,7 @@ fi
cp -R "${MOUNT_POINT}/${APP_NAME}" "${INSTALL_DIR}/"

# Unmount
hdiutil detach "$MOUNT_POINT" -quiet 2>/dev/null || true
hdiutil detach "$MOUNT_POINT" >/dev/null 2>&1 || true

# ── Cleanup ──
rm -rf "$TMPDIR_INSTALL"
Expand Down
Loading