mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 04:22:06 +08:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9a0a1260e0 | ||
![]() |
a864cf9284 | ||
![]() |
f3953cd838 | ||
![]() |
a48185e6a5 |
@ -15,8 +15,8 @@
|
|||||||
> ⚠️ **IMPORTANT NOTICE**
|
> ⚠️ **IMPORTANT NOTICE**
|
||||||
>
|
>
|
||||||
> This tool currently supports:
|
> This tool currently supports:
|
||||||
> - ✅ Windows: Latest 0.49.x versions (Supported)
|
> - ✅ Windows: Latest 0.50.x versions (Supported)
|
||||||
> - ✅ Mac/Linux: Latest 0.49.x versions (Supported, feedback welcome)
|
> - ✅ Mac/Linux: Latest 0.50.x versions (Supported, feedback welcome)
|
||||||
>
|
>
|
||||||
> Please check your Cursor version before using this tool.
|
> Please check your Cursor version before using this tool.
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
> ⚠️ **重要提示**
|
> ⚠️ **重要提示**
|
||||||
>
|
>
|
||||||
> 本工具当前支持版本:
|
> 本工具当前支持版本:
|
||||||
> - ✅ Windows: 最新的 0.49.x 版本(已支持)
|
> - ✅ Windows: 最新的 0.50.x 版本(已支持)
|
||||||
> - ✅ Mac/Linux: 最新的 0.49.x 版本(已支持,欢迎测试并反馈问题)
|
> - ✅ Mac/Linux: 最新的 0.50.x 版本(已支持,欢迎测试并反馈问题)
|
||||||
|
|
||||||
> 使用前请确认您的 Cursor 版本。
|
> 使用前请确认您的 Cursor 版本。
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
> ⚠️ **重要なお知らせ**
|
> ⚠️ **重要なお知らせ**
|
||||||
>
|
>
|
||||||
> このツールは現在以下のバージョンをサポートしています:
|
> このツールは現在以下のバージョンをサポートしています:
|
||||||
> - ✅ Windows: 最新の0.49.xバージョン(サポート済み)
|
> - ✅ Windows: 最新の0.50.xバージョン(サポート済み)
|
||||||
> - ✅ Mac/Linux: 最新の0.49.xバージョン(サポート済み、フィードバック歓迎)
|
> - ✅ Mac/Linux: 最新の0.50.xバージョン(サポート済み、フィードバック歓迎)
|
||||||
>
|
>
|
||||||
> このツールを使用する前に、Cursorのバージョンを確認してください。
|
> このツールを使用する前に、Cursorのバージョンを確認してください。
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
AppImage instructions:
|
AppImage instructions:
|
||||||
mkdir -p ~/Downloads/Cursor
|
mkdir -p ~/Downloads/Cursor
|
||||||
cd ~/Downloads/Cursor
|
cd ~/Downloads/Cursor
|
||||||
cd Cursor && ./Cursor-0.49.5-x86_64.AppImage --appimage-extract
|
cd Cursor && ./Cursor-0.50.5-x86_64.AppImage --appimage-extract
|
||||||
mkdir -p ~/.local
|
mkdir -p ~/.local
|
||||||
rsync -rt ~/Downloads/Cursor/squashfs-root/usr/ ~/.local
|
rsync -rt ~/Downloads/Cursor/squashfs-root/usr/ ~/.local
|
||||||
# ^ copy the subfolders not usr itself, so the resulting executable should be ~/.local/bin/cursor
|
# ^ copy the subfolders not usr itself, so the resulting executable should be ~/.local/bin/cursor
|
||||||
|
@ -202,7 +202,7 @@ install_cursor_appimage() {
|
|||||||
if ! find_appimage; then
|
if ! find_appimage; then
|
||||||
log_warn "在 '$APPIMAGE_SEARCH_DIR' 目录下未找到 '$APPIMAGE_PATTERN' 文件。"
|
log_warn "在 '$APPIMAGE_SEARCH_DIR' 目录下未找到 '$APPIMAGE_PATTERN' 文件。"
|
||||||
# --- 新增:添加文件名格式提醒 ---
|
# --- 新增:添加文件名格式提醒 ---
|
||||||
log_info "请确保 AppImage 文件名格式类似: Cursor-版本号-架构.AppImage (例如: Cursor-0.49.6-aarch64.AppImage 或 Cursor-x.y.z-x86_64.AppImage)"
|
log_info "请确保 AppImage 文件名格式类似: Cursor-版本号-架构.AppImage (例如: Cursor-0.50.6-aarch64.AppImage 或 Cursor-x.y.z-x86_64.AppImage)"
|
||||||
# --- 结束:添加文件名格式提醒 ---
|
# --- 结束:添加文件名格式提醒 ---
|
||||||
# 等待用户放置文件
|
# 等待用户放置文件
|
||||||
read -p $"请将 Cursor AppImage 文件放入 '$APPIMAGE_SEARCH_DIR' 目录,然后按 Enter 键继续..."
|
read -p $"请将 Cursor AppImage 文件放入 '$APPIMAGE_SEARCH_DIR' 目录,然后按 Enter 键继续..."
|
||||||
@ -1170,9 +1170,13 @@ main() {
|
|||||||
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝
|
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝
|
||||||
"
|
"
|
||||||
echo -e "${BLUE}=====================================================${NC}"
|
echo -e "${BLUE}=====================================================${NC}"
|
||||||
echo -e "${GREEN} Cursor Linux 启动与修改工具 ${NC}"
|
echo -e "${GREEN} Cursor Linux 启动与修改工具(免费) ${NC}"
|
||||||
|
echo -e "${YELLOW} 关注公众号【煎饼果子卷AI】 ${NC}"
|
||||||
|
echo -e "${YELLOW} 一起交流更多Cursor技巧和AI知识(脚本免费、关注公众号加群有更多技巧和大佬) ${NC}"
|
||||||
echo -e "${BLUE}=====================================================${NC}"
|
echo -e "${BLUE}=====================================================${NC}"
|
||||||
echo
|
echo
|
||||||
|
echo -e "${GREEN} [小小广告] 出售CursorPro教育号一年质保三个月,有需要找我(86),WeChat:JavaRookie666 ${NC}"
|
||||||
|
echo
|
||||||
echo -e "${YELLOW}[提示]${NC} 本工具旨在修改 Cursor 以解决可能的启动问题或设备限制。"
|
echo -e "${YELLOW}[提示]${NC} 本工具旨在修改 Cursor 以解决可能的启动问题或设备限制。"
|
||||||
echo -e "${YELLOW}[提示]${NC} 它将优先修改 JS 文件,并可选择重置设备ID和禁用自动更新。"
|
echo -e "${YELLOW}[提示]${NC} 它将优先修改 JS 文件,并可选择重置设备ID和禁用自动更新。"
|
||||||
echo -e "${YELLOW}[提示]${NC} 如果未找到 Cursor,将尝试从 '$APPIMAGE_SEARCH_DIR' 目录安装。"
|
echo -e "${YELLOW}[提示]${NC} 如果未找到 Cursor,将尝试从 '$APPIMAGE_SEARCH_DIR' 目录安装。"
|
||||||
@ -1218,7 +1222,7 @@ main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 执行 Cursor 初始化清理
|
# 执行 Cursor 初始化清理
|
||||||
cursor_initialize_cleanup
|
# cursor_initialize_cleanup
|
||||||
|
|
||||||
# 备份并处理配置文件 (机器码重置选项)
|
# 备份并处理配置文件 (机器码重置选项)
|
||||||
if ! generate_new_config; then
|
if ! generate_new_config; then
|
||||||
|
@ -1291,6 +1291,8 @@ main() {
|
|||||||
echo -e "${YELLOW} 一起交流更多Cursor技巧和AI知识(脚本免费、关注公众号加群有更多技巧和大佬) ${NC}"
|
echo -e "${YELLOW} 一起交流更多Cursor技巧和AI知识(脚本免费、关注公众号加群有更多技巧和大佬) ${NC}"
|
||||||
echo -e "${BLUE}================================${NC}"
|
echo -e "${BLUE}================================${NC}"
|
||||||
echo
|
echo
|
||||||
|
echo -e "${YELLOW} [小小广告] 出售CursorPro教育号一年质保三个月,有需要找我(86),WeChat:JavaRookie666 ${NC}"
|
||||||
|
echo
|
||||||
echo -e "${YELLOW}[重要提示]${NC} 本工具默认会修改系统 MAC 地址 (临时) 并修改 JS 文件以重置设备标识。"
|
echo -e "${YELLOW}[重要提示]${NC} 本工具默认会修改系统 MAC 地址 (临时) 并修改 JS 文件以重置设备标识。"
|
||||||
echo -e "${YELLOW}[重要提示]${NC} 本工具免费,如果对您有帮助,请关注公众号【煎饼果子卷AI】"
|
echo -e "${YELLOW}[重要提示]${NC} 本工具免费,如果对您有帮助,请关注公众号【煎饼果子卷AI】"
|
||||||
echo
|
echo
|
||||||
@ -1300,7 +1302,7 @@ main() {
|
|||||||
check_and_kill_cursor
|
check_and_kill_cursor
|
||||||
|
|
||||||
# 执行 Cursor 初始化清理
|
# 执行 Cursor 初始化清理
|
||||||
cursor_initialize_cleanup
|
# cursor_initialize_cleanup
|
||||||
|
|
||||||
backup_config
|
backup_config
|
||||||
|
|
||||||
|
@ -108,8 +108,9 @@ Write-Host "$GREEN Cursor 设备ID 修改工具 $NC"
|
|||||||
Write-Host "$YELLOW 关注公众号【煎饼果子卷AI】 $NC"
|
Write-Host "$YELLOW 关注公众号【煎饼果子卷AI】 $NC"
|
||||||
Write-Host "$YELLOW 一起交流更多Cursor技巧和AI知识(脚本免费、关注公众号加群有更多技巧和大佬) $NC"
|
Write-Host "$YELLOW 一起交流更多Cursor技巧和AI知识(脚本免费、关注公众号加群有更多技巧和大佬) $NC"
|
||||||
Write-Host "$YELLOW [重要提示] 本工具免费,如果对您有帮助,请关注公众号【煎饼果子卷AI】 $NC"
|
Write-Host "$YELLOW [重要提示] 本工具免费,如果对您有帮助,请关注公众号【煎饼果子卷AI】 $NC"
|
||||||
Write-Host "$BLUE================================$NC"
|
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
Write-Host "$YELLOW [小小广告] 出售CursorPro教育号一年质保三个月,有需要找我(86),WeChat:JavaRookie666 $NC"
|
||||||
|
Write-Host "$BLUE================================$NC"
|
||||||
|
|
||||||
# 获取并显示 Cursor 版本
|
# 获取并显示 Cursor 版本
|
||||||
function Get-CursorVersion {
|
function Get-CursorVersion {
|
||||||
@ -149,7 +150,7 @@ function Get-CursorVersion {
|
|||||||
$cursorVersion = Get-CursorVersion
|
$cursorVersion = Get-CursorVersion
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
|
||||||
Write-Host "$YELLOW[重要提示]$NC 最新的 0.49.x (以支持)"
|
Write-Host "$YELLOW[重要提示]$NC 最新的 0.50.x (以支持)"
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
|
||||||
# 检查并关闭 Cursor 进程
|
# 检查并关闭 Cursor 进程
|
||||||
@ -204,7 +205,7 @@ Close-CursorProcess "Cursor"
|
|||||||
Close-CursorProcess "cursor"
|
Close-CursorProcess "cursor"
|
||||||
|
|
||||||
# 执行 Cursor 初始化清理
|
# 执行 Cursor 初始化清理
|
||||||
Cursor-初始化
|
# Cursor-初始化
|
||||||
|
|
||||||
# 创建备份目录
|
# 创建备份目录
|
||||||
if (-not (Test-Path $BACKUP_DIR)) {
|
if (-not (Test-Path $BACKUP_DIR)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user