Browse Source

feat: Update version to 2.5.0 and enhance installation scripts

- 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.
pull/30/head v0.0.3
Xx 6 months ago
parent
commit
21aa297b39
  1. 1
      .gitignore
  2. 8
      README.md
  3. BIN
      bin/cursor_id_modifier_v2.0.0_darwin_arm64_m1
  4. BIN
      bin/cursor_id_modifier_v2.0.0_windows_amd64.exe
  5. BIN
      bin/cursor_id_modifier_v2.5.0_darwin_amd64_intel
  6. BIN
      bin/cursor_id_modifier_v2.5.0_darwin_arm64_m1
  7. BIN
      bin/cursor_id_modifier_v2.5.0_linux_amd64
  8. BIN
      bin/cursor_id_modifier_v2.5.0_windows_amd64.exe
  9. 2
      cursor_modifier.bat
  10. 2
      cursor_modifier.sh
  11. 2
      install.sh
  12. 2
      main.go
  13. 2
      scripts/build_all.bat
  14. 2
      scripts/build_all.sh

1
.gitignore

@ -1,5 +1,4 @@
# Binary files # Binary files
*.exe
*.dll *.dll
*.so *.so
*.dylib *.dylib

8
README.md

@ -42,7 +42,7 @@ curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/
**Windows** (Run in PowerShell as Admin) **Windows** (Run in PowerShell as Admin)
```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
``` ```
#### Manual Method #### Manual Method
@ -61,7 +61,7 @@ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManage
"telemetry.devDeviceId": "generate-new-uuid", "telemetry.devDeviceId": "generate-new-uuid",
"telemetry.sqmId": "generate-new-uuid", "telemetry.sqmId": "generate-new-uuid",
"lastModified": "2024-01-01T00:00:00.000Z", "lastModified": "2024-01-01T00:00:00.000Z",
"version": "2.0.0"
"version": "2.5.0"
} }
``` ```
5. Save the file and restart Cursor 5. Save the file and restart Cursor
@ -137,7 +137,7 @@ curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/
**Windows** (以管理员身份运行PowerShell) **Windows** (以管理员身份运行PowerShell)
```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
``` ```
#### 手动方法 #### 手动方法
@ -156,7 +156,7 @@ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManage
"telemetry.devDeviceId": "生成新的uuid", "telemetry.devDeviceId": "生成新的uuid",
"telemetry.sqmId": "生成新的uuid", "telemetry.sqmId": "生成新的uuid",
"lastModified": "2024-01-01T00:00:00.000Z", "lastModified": "2024-01-01T00:00:00.000Z",
"version": "2.0.0"
"version": "2.5.0"
} }
``` ```
5. 保存文件并重启 Cursor 5. 保存文件并重启 Cursor

BIN
bin/cursor_id_modifier_v2.0.0_darwin_arm64_m1

BIN
bin/cursor_id_modifier_v2.0.0_windows_amd64.exe

BIN
bin/cursor_id_modifier_v2.0.0_darwin_amd64_intel → bin/cursor_id_modifier_v2.5.0_darwin_amd64_intel

BIN
bin/cursor_id_modifier_v2.5.0_darwin_arm64_m1

BIN
bin/cursor_id_modifier_v2.0.0_linux_amd64 → bin/cursor_id_modifier_v2.5.0_linux_amd64

BIN
bin/cursor_id_modifier_v2.5.0_windows_amd64.exe

2
cursor_modifier.bat

@ -3,7 +3,7 @@ chcp 65001 >nul
setlocal EnableDelayedExpansion 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 for /f "tokens=2 delims==" %%a in ('wmic os get OSLanguage /value') do set OSLanguage=%%a

2
cursor_modifier.sh

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# 版本号 - 与其他文件保持一致 # 版本号 - 与其他文件保持一致
VERSION="2.0.0"
VERSION="2.5.0"
# 颜色定义 # 颜色定义
RED='\033[0;31m' RED='\033[0;31m'

2
install.sh

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Version / 版本号 # Version / 版本号
VERSION="v2.0.0"
VERSION="v2.5.0"
# Configuration / 配置 # Configuration / 配置
KEEP_BINARY=false KEEP_BINARY=false

2
main.go

@ -32,7 +32,7 @@ const (
EN Language = "en" EN Language = "en"
// Version / 版本号 // Version / 版本号
Version = "2.0.0"
Version = "2.5.0"
// Error types / 错误类型 // Error types / 错误类型
ErrPermission = "permission_error" ErrPermission = "permission_error"

2
scripts/build_all.bat

@ -2,7 +2,7 @@
setlocal EnableDelayedExpansion setlocal EnableDelayedExpansion
:: 设置版本信息 :: 设置版本信息
set VERSION=2.0.0
set VERSION=2.5.0
:: 设置颜色代码 :: 设置颜色代码
set "GREEN=[32m" set "GREEN=[32m"

2
scripts/build_all.sh

@ -6,7 +6,7 @@ RED='\033[0;31m'
NC='\033[0m' # No Color NC='\033[0m' # No Color
# 版本信息 # 版本信息
VERSION="2.0.0"
VERSION="2.5.0"
# 错误处理函数 # 错误处理函数
handle_error() { handle_error() {

Loading…
Cancel
Save