Skip to content

Commit

Permalink
cursor-vip update
Browse files Browse the repository at this point in the history
  • Loading branch information
kingparks committed Jan 14, 2025
1 parent 6859eb0 commit 6f97105
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
12 changes: 12 additions & 0 deletions build/i.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ fi;
if [[ $os_name == "windows" ]]; then
# 停掉正在运行cursor-vip
taskkill -f -im cursor-vip.exe > nul 2>&1 || true
# 判断如果有powershell,则通过powershell来获取桌面路径,否则通过cmd来获取桌面路径
desktop_dir="${USERPROFILE}/Desktop"
if command -v powershell > /dev/null; then
desktop_dir=$(powershell -Command "[Environment]::GetFolderPath('Desktop')")
else
if [ -d "${USERPROFILE}/Desktop" ]; then
desktop_dir="${USERPROFILE}/Desktop"
else
desktop_dir="${USERPROFILE}/OneDrive/Desktop"
fi
fi

desktop_dir=$(powershell -Command "[Environment]::GetFolderPath('Desktop')")
# 安装
curl -Lko ${desktop_dir}/cursor-vip.exe ${url}/cursor-vip_${os_name}_${hw_name}.exe
Expand Down
11 changes: 10 additions & 1 deletion build/ic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,16 @@ fi;
if [[ $os_name == "windows" ]]; then
# 停掉正在运行cursor-vip
taskkill -f -im cursor-vip.exe > nul 2>&1 || true
desktop_dir=$(powershell -Command "[Environment]::GetFolderPath('Desktop')")
desktop_dir="${USERPROFILE}/Desktop"
if command -v powershell > /dev/null; then
desktop_dir=$(powershell -Command "[Environment]::GetFolderPath('Desktop')")
else
if [ -d "${USERPROFILE}/Desktop" ]; then
desktop_dir="${USERPROFILE}/Desktop"
else
desktop_dir="${USERPROFILE}/OneDrive/Desktop"
fi
fi
# 安装
curl -Lko ${desktop_dir}/cursor-vip.exe ${url}/cursor-vip_${os_name}_${hw_name}.exe
if [ "$lc_type" = "zh" ]; then
Expand Down
2 changes: 1 addition & 1 deletion tui/params/params.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package params

var Version = 242
var Version = 243

var Hosts = []string{"https://cursor.jeter.eu.org", "http://129.154.205.7:7193"}
var Host = Hosts[0]
Expand Down

0 comments on commit 6f97105

Please sign in to comment.