From 1f1366a0c9f4b42eeb0a2faf3975d9de7d5a2612 Mon Sep 17 00:00:00 2001 From: yeongpin Date: Mon, 13 Jan 2025 13:03:05 +0800 Subject: [PATCH] update mac/linux after bash run application --- scripts/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index face2fb..878e383 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -77,7 +77,10 @@ install_cursor_free_vip() { if [ $? -eq 0 ]; then echo -e "${GREEN}✅ 安裝完成!${NC}" - echo -e "${CYAN}ℹ️ 您可以通過運行 'cursor-free-vip' 來啟動程序${NC}" + echo -e "${CYAN}ℹ️ 正在啟動程序...${NC}" + # 使用 nohup 在后台运行程序 + nohup "${install_dir}/cursor-free-vip" > /dev/null 2>&1 & + echo -e "${GREEN}✅ 程序已在後台啟動${NC}" else echo -e "${RED}❌ 安裝失敗${NC}" exit 1