Skip to content

Commit

Permalink
feat: Update version to 2.5.0 and enhance installation scripts
Browse files Browse the repository at this point in the history
- Updated version number to 2.5.0 across all relevant files for consistency.
- Removed obsolete version 2.0.0 binaries and added new binaries for version 2.5.0 for various platforms (Windows, Linux, macOS).
- Updated installation scripts (`cursor_modifier.bat`, `cursor_modifier.sh`, `install.sh`, and `build_all` scripts) to reflect the new version.
- Revised README.md to include updated installation instructions and links to the new binaries, ensuring users have accurate and up-to-date information.

These changes collectively improve the application's usability and ensure users can access the latest version seamlessly.
  • Loading branch information
yuaotian committed Dec 13, 2024
1 parent 98f6eab commit 21aa297
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Binary files
*.exe
*.dll
*.so
*.dylib
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/

**Windows** (Run in PowerShell as Admin)
```powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/bin/cursor_id_modifier_v2.0.0_windows_amd64.exe')); Remove-Item -Path "$env:TEMP\cursor-id-modifier.exe" -ErrorAction SilentlyContinue
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/bin/cursor_id_modifier_v2.5.0_windows_amd64.exe')); Remove-Item -Path "$env:TEMP\cursor-id-modifier.exe" -ErrorAction SilentlyContinue
```

#### Manual Method
Expand All @@ -61,7 +61,7 @@ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManage
"telemetry.devDeviceId": "generate-new-uuid",
"telemetry.sqmId": "generate-new-uuid",
"lastModified": "2024-01-01T00:00:00.000Z",
"version": "2.0.0"
"version": "2.5.0"
}
```
5. Save the file and restart Cursor
Expand Down Expand Up @@ -137,7 +137,7 @@ curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/

**Windows** (以管理员身份运行PowerShell)
```powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/bin/cursor_id_modifier_v2.0.0_windows_amd64.exe')); Remove-Item -Path "$env:TEMP\cursor-id-modifier.exe" -ErrorAction SilentlyContinue
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/bin/cursor_id_modifier_v2.5.0_windows_amd64.exe')); Remove-Item -Path "$env:TEMP\cursor-id-modifier.exe" -ErrorAction SilentlyContinue
```

#### 手动方法
Expand All @@ -156,7 +156,7 @@ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManage
"telemetry.devDeviceId": "生成新的uuid",
"telemetry.sqmId": "生成新的uuid",
"lastModified": "2024-01-01T00:00:00.000Z",
"version": "2.0.0"
"version": "2.5.0"
}
```
5. 保存文件并重启 Cursor
Expand Down
Binary file removed bin/cursor_id_modifier_v2.0.0_darwin_arm64_m1
Binary file not shown.
Binary file removed bin/cursor_id_modifier_v2.0.0_windows_amd64.exe
Binary file not shown.
Binary file not shown.
Binary file added bin/cursor_id_modifier_v2.5.0_darwin_arm64_m1
Binary file not shown.
Binary file not shown.
Binary file added bin/cursor_id_modifier_v2.5.0_windows_amd64.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion cursor_modifier.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ chcp 65001 >nul
setlocal EnableDelayedExpansion

:: 版本号
set "VERSION=2.0.0"
set "VERSION=2.5.0"

:: 检测语言
for /f "tokens=2 delims==" %%a in ('wmic os get OSLanguage /value') do set OSLanguage=%%a
Expand Down
2 changes: 1 addition & 1 deletion cursor_modifier.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# 版本号 - 与其他文件保持一致
VERSION="2.0.0"
VERSION="2.5.0"

# 颜色定义
RED='\033[0;31m'
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Version / 版本号
VERSION="v2.0.0"
VERSION="v2.5.0"

# Configuration / 配置
KEEP_BINARY=false
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
EN Language = "en"

// Version / 版本号
Version = "2.0.0"
Version = "2.5.0"

// Error types / 错误类型
ErrPermission = "permission_error"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_all.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
setlocal EnableDelayedExpansion

:: 设置版本信息
set VERSION=2.0.0
set VERSION=2.5.0

:: 设置颜色代码
set "GREEN=[32m"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RED='\033[0;31m'
NC='\033[0m' # No Color

# 版本信息
VERSION="2.0.0"
VERSION="2.5.0"

# 错误处理函数
handle_error() {
Expand Down

0 comments on commit 21aa297

Please sign in to comment.