Files
exAichatbot_agent/chatbotDesktopApp-chatbot2.0/packaging/mac/응용 프로그램에 설치하고 실행.command
T
2026-08-03 13:59:26 +09:00

26 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# DMG에서 실행: Applications로 복사 + Gatekeeper 검역 제거 후 실행
# (미서명 빌드에서 「손상되었기 때문에 열 수 없습니다」 방지)
set -euo pipefail
cd "$(dirname "$0")"
APP_NAME="EX AI Chatbot.app"
SRC="$(pwd)/${APP_NAME}"
DEST="/Applications/${APP_NAME}"
if [[ ! -d "${SRC}" ]]; then
osascript -e 'display dialog "같은 디스크에 「EX AI Chatbot.app」이 없습니다.\ndmg 창에서 이 스크립트를 실행해 주세요." buttons {"확인"} default button 1 with title "EX AI Chatbot"' >/dev/null 2>&1 || true
exit 1
fi
# 기존 설치 교체
rm -rf "${DEST}"
cp -R "${SRC}" "${DEST}"
# 다운로드/복사로 붙은 quarantine 제거 (손상됨 팝업 핵심 해결)
xattr -cr "${DEST}" 2>/dev/null || true
open "${DEST}"
osascript -e 'display dialog "응용 프로그램에 설치하고 실행했습니다.\n다음에 실행할 때는 Launchpad 또는 응용 프로그램 폴더의 「EX AI Chatbot」을 사용하세요." buttons {"확인"} default button 1 with title "EX AI Chatbot"' >/dev/null 2>&1 || true