From 1799ce848abfb8aff103f338740e629860cddf08 Mon Sep 17 00:00:00 2001 From: "kingparks@jeter.eu.org" Date: Sun, 12 Jan 2025 14:27:54 +0800 Subject: [PATCH] cursor-vip update --- build/i.sh | 9 +-------- build/ic.sh | 9 +-------- tui/params/params.go | 2 +- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/build/i.sh b/build/i.sh index 0afa656..96e7e98 100755 --- a/build/i.sh +++ b/build/i.sh @@ -85,14 +85,7 @@ fi; if [[ $os_name == "windows" ]]; then # 停掉正在运行cursor-vip taskkill -f -im cursor-vip.exe || true - - # 检查 Desktop 目录是否存在 - if [ -d "${USERPROFILE}/Desktop" ]; then - desktop_dir="${USERPROFILE}/Desktop" - else - desktop_dir="${USERPROFILE}/OneDrive/Desktop" - fi - + desktop_dir=$(powershell -Command "[Environment]::GetFolderPath('Desktop')") # 安装 curl -Lko ${desktop_dir}/cursor-vip.exe ${url}/cursor-vip_${os_name}_${hw_name}.exe if [ "$lc_type" = "zh" ]; then diff --git a/build/ic.sh b/build/ic.sh index 0afa656..96e7e98 100755 --- a/build/ic.sh +++ b/build/ic.sh @@ -85,14 +85,7 @@ fi; if [[ $os_name == "windows" ]]; then # 停掉正在运行cursor-vip taskkill -f -im cursor-vip.exe || true - - # 检查 Desktop 目录是否存在 - if [ -d "${USERPROFILE}/Desktop" ]; then - desktop_dir="${USERPROFILE}/Desktop" - else - desktop_dir="${USERPROFILE}/OneDrive/Desktop" - fi - + desktop_dir=$(powershell -Command "[Environment]::GetFolderPath('Desktop')") # 安装 curl -Lko ${desktop_dir}/cursor-vip.exe ${url}/cursor-vip_${os_name}_${hw_name}.exe if [ "$lc_type" = "zh" ]; then diff --git a/tui/params/params.go b/tui/params/params.go index 1be71d9..b94eee8 100644 --- a/tui/params/params.go +++ b/tui/params/params.go @@ -1,6 +1,6 @@ package params -var Version = 241 +var Version = 242 var Hosts = []string{"https://cursor.jeter.eu.org", "http://129.154.205.7:7193"} var Host = Hosts[0]