mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 12:32:06 +08:00
Compare commits
46 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9a0a1260e0 | ||
![]() |
a864cf9284 | ||
![]() |
f3953cd838 | ||
![]() |
a48185e6a5 | ||
![]() |
c1b7e42e27 | ||
![]() |
776ecb0434 | ||
![]() |
86b2bae098 | ||
![]() |
291c6198bc | ||
![]() |
bc787f2076 | ||
![]() |
9204cef000 | ||
![]() |
363518ad40 | ||
![]() |
d01dcdb7ba | ||
![]() |
234ec180a0 | ||
![]() |
974852944b | ||
![]() |
e5ea1700bd | ||
![]() |
3f7ae1fbf3 | ||
![]() |
e481d97bd2 | ||
![]() |
702bb5d05f | ||
![]() |
a34ff83bca | ||
![]() |
207689ff56 | ||
![]() |
a2d55a00a2 | ||
![]() |
d48d9fa1d0 | ||
![]() |
33cd677188 | ||
![]() |
f6aba31832 | ||
![]() |
f022fc1736 | ||
![]() |
0c59c68340 | ||
![]() |
3501dd3602 | ||
![]() |
9eba036c80 | ||
![]() |
00bbf18ce7 | ||
![]() |
2cc31dd77f | ||
![]() |
ec954b3130 | ||
![]() |
2ae42e3c2a | ||
![]() |
fc5ea3511b | ||
![]() |
4daa24e80a | ||
![]() |
6d53a926e0 | ||
![]() |
d47f127ba3 | ||
![]() |
49f5af4827 | ||
![]() |
b0455d2c46 | ||
![]() |
ff17ed48d7 | ||
![]() |
df9507a433 | ||
![]() |
f4d8ba125c | ||
![]() |
9ec3f0518c | ||
![]() |
f130869f51 | ||
![]() |
2a382d7faa | ||
![]() |
fc4f4b870e | ||
![]() |
42b6c3f159 |
41
README.md
41
README.md
@ -15,9 +15,8 @@
|
||||
> ⚠️ **IMPORTANT NOTICE**
|
||||
>
|
||||
> This tool currently supports:
|
||||
> - ✅ Cursor v0.45.x and below
|
||||
> - ✅ Windows: Latest 0.47.x versions (Supported)
|
||||
> - ✅ Mac/Linux: Latest 0.47.x versions (Supported, feedback welcome)
|
||||
> - ✅ Windows: Latest 0.50.x versions (Supported)
|
||||
> - ✅ Mac/Linux: Latest 0.50.x versions (Supported, feedback welcome)
|
||||
>
|
||||
> Please check your Cursor version before using this tool.
|
||||
|
||||
@ -27,21 +26,29 @@
|
||||
<div class="version-card" style="background: linear-gradient(135deg, #6e8efb, #a777e3); border-radius: 8px; padding: 15px; margin: 10px 0; color: white;">
|
||||
|
||||
### 🌟 Latest Versions
|
||||
- v0.45.11 (2025-02-07) - Latest Release
|
||||
- v0.45.x (2025-01-03) - Most Stable Release
|
||||
|
||||
[View Full Version History](CursorHistoryDown.md)
|
||||
[View Full Version History]([CursorHistoryDown.md](https://github.com/oslook/cursor-ai-downloads?tab=readme-ov-file))
|
||||
|
||||
</div>
|
||||
|
||||
### 📥 Direct Download Links
|
||||
|
||||
**v0.45.x (Recommended Stable Version)**
|
||||
- Windows: [Official](https://downloader.cursor.sh/builds/250103fqxdt5u9z/windows/nsis/x64) | [Mirror](https://download.todesktop.com/230313mzl4w4u92/Cursor%20Setup%200.44.11%20-%20Build%20250103fqxdt5u9z-x64.exe)
|
||||
- Mac: [Apple Silicon](https://dl.todesktop.com/230313mzl4w4u92/versions/0.44.11/mac/zip/arm64)
|
||||
|
||||
</details>
|
||||
|
||||
⚠️ **General Solutions for Cursor**
|
||||
> 1. Close Cursor, log out of your account, and delete your account in the official website Settings (refresh IP node: Japan, Singapore, USA, Hong Kong, prioritizing low latency - not necessarily required but change if conditions allow; Windows users are recommended to refresh DNS cache: `ipconfig /flushdns`)
|
||||
> Go to the Cursor official website to delete your current account
|
||||
> Steps: User avatar -> Setting -> Advanced▼ in the bottom left -> Delete Account
|
||||
>
|
||||
> 2. Run the machine code refresh script, see the script address below, available in China
|
||||
>
|
||||
> 3. Re-register an account, log in, and open Cursor to resume normal use.
|
||||
>
|
||||
> 4. Alternative solution: If still unusable after step [**3**], or if you encounter problems such as account registration failure or inability to delete an account, this usually means your browser has been identified or restricted by the target website (risk control). In this case, try switching browsers, such as: Edge, Google Chrome, Firefox. (Or, consider using a browser that can modify or randomize browser fingerprint information).
|
||||
|
||||
|
||||
---
|
||||
|
||||
⚠️ **MAC Address Modification Warning**
|
||||
>
|
||||
> For Mac users: This script includes a MAC address modification feature that will:
|
||||
@ -50,14 +57,6 @@
|
||||
> - This modification may temporarily affect network connectivity
|
||||
> - You can skip this step when prompted during execution
|
||||
>
|
||||
> 💾 **Download Cursor v0.45.x**
|
||||
>
|
||||
> Windows:
|
||||
> - [Download from Cursor Official](https://downloader.cursor.sh/builds/250103fqxdt5u9z/windows/nsis/x64)
|
||||
> - [Download from ToDesktop](https://download.todesktop.com/230313mzl4w4u92/Cursor%20Setup%200.44.11%20-%20Build%20250103fqxdt5u9z-x64.exe)
|
||||
>
|
||||
> Mac:
|
||||
> - [Download for Mac (Apple Silicon)](https://dl.todesktop.com/230313mzl4w4u92/versions/0.44.11/mac/zip/arm64)
|
||||
|
||||
<details >
|
||||
<summary><b>🔒 Disable Auto-Update Feature</b></summary>
|
||||
@ -256,6 +255,8 @@ curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com
|
||||
curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_linux_id_modifier.sh | sudo bash
|
||||
```
|
||||
|
||||
> **Note for Linux users:** The script attempts to find your Cursor installation by checking common paths (`/usr/bin`, `/usr/local/bin`, `$HOME/.local/bin`, `/opt/cursor`, `/snap/bin`), using the `which cursor` command, and searching within `/usr`, `/opt`, and `$HOME/.local`. If Cursor is installed elsewhere or not found via these methods, the script may fail. Ensure Cursor is accessible via one of these standard locations or methods.
|
||||
|
||||
**Windows**
|
||||
|
||||
```powershell
|
||||
@ -502,8 +503,8 @@ Modifying this registry key may affect:
|
||||
</td>
|
||||
<td align="center">
|
||||
<b>WeChat</b><br>
|
||||
<img src="img/qun-8.png" width="500" alt="WeChat"><br>
|
||||
<em>二维码7天内(3月29日前)有效,过期请加微信</em>
|
||||
<img src="img/qun13.png" width="500" alt="WeChat"><br>
|
||||
<em>二维码7天内(5月30日前)有效,过期请加微信</em>
|
||||
</td>
|
||||
<!-- <td align="center">
|
||||
<b>ETC</b><br>
|
||||
|
64
README_CN.md
64
README_CN.md
@ -15,10 +15,9 @@
|
||||
> ⚠️ **重要提示**
|
||||
>
|
||||
> 本工具当前支持版本:
|
||||
> - ✅ Cursor v0.45.x 及以下版本
|
||||
> - ✅ Windows: 最新的 0.47.x 版本(已支持)
|
||||
> - ✅ Mac/Linux: 最新的 0.47.x 版本(已支持,欢迎测试并反馈问题)
|
||||
>
|
||||
> - ✅ Windows: 最新的 0.50.x 版本(已支持)
|
||||
> - ✅ Mac/Linux: 最新的 0.50.x 版本(已支持,欢迎测试并反馈问题)
|
||||
|
||||
> 使用前请确认您的 Cursor 版本。
|
||||
|
||||
<details open>
|
||||
@ -26,22 +25,31 @@
|
||||
|
||||
<div class="version-card" style="background: linear-gradient(135deg, #6e8efb, #a777e3); border-radius: 8px; padding: 15px; margin: 10px 0; color: white;">
|
||||
|
||||
### 🌟 最新版本
|
||||
- v0.45.11 (2025-02-07) - 最新发布
|
||||
- v0.45.x (2025-01-03) - 最稳定版本
|
||||
|
||||
[查看完整版本历史](CursorHistoryDown.md)
|
||||
[查看完整版本历史]([CursorHistoryDown.md](https://github.com/oslook/cursor-ai-downloads?tab=readme-ov-file))
|
||||
|
||||
</div>
|
||||
|
||||
### 📥 直接下载链接
|
||||
|
||||
**v0.45.x (推荐稳定版)**
|
||||
- Windows: [官方下载](https://downloader.cursor.sh/builds/250103fqxdt5u9z/windows/nsis/x64) | [镜像下载](https://download.todesktop.com/230313mzl4w4u92/Cursor%20Setup%200.44.11%20-%20Build%20250103fqxdt5u9z-x64.exe)
|
||||
- Mac: [Apple Silicon](https://dl.todesktop.com/230313mzl4w4u92/versions/0.44.11/mac/zip/arm64)
|
||||
|
||||
</details>
|
||||
|
||||
⚠️ **Cursor通用解决方案**
|
||||
> 1. 关闭Cursor、退出账号、官网Setting删除账号(刷新节点IP:日本、新加坡、 美国、香港,低延迟为主不一定需要但是有条件就换,Windows用户建议刷新DNS缓存:`ipconfig /flushdns`)
|
||||
> 前往Cursor官网删除当前账号
|
||||
> 步骤:用户头像->Setting-左下角Advanced▼->Delete Account
|
||||
>
|
||||
> 2. 刷新机器码脚本,看下面脚本地址,国内可用
|
||||
>
|
||||
> 3. 重新注册账号、登录、打开Cursor,即可恢复正常使用。
|
||||
>
|
||||
> 4. 备用方案:如果步骤 [**3**] 后仍不可用,或者遇到注册账号失败、无法删除账号等问题,这通常意味着您的浏览器被目标网站识别或限制(风控)。此时,请尝试更换浏览器,例如:Edge、Google Chrome、Firefox。(或者,可以尝试使用能够修改或随机化浏览器指纹信息的浏览器)。
|
||||
|
||||
|
||||
关注大佬公众号:煎饼果子卷AI
|
||||
|
||||
|
||||
---
|
||||
|
||||
> ⚠️ **MAC地址修改警告**
|
||||
>
|
||||
> Mac用户请注意: 本脚本包含MAC地址修改功能,将会:
|
||||
@ -187,6 +195,8 @@ curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com
|
||||
curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_linux_id_modifier.sh | sudo bash
|
||||
```
|
||||
|
||||
> **Linux 用户请注意:** 该脚本通过检查常用路径(`/usr/bin`, `/usr/local/bin`, `$HOME/.local/bin`, `/opt/cursor`, `/snap/bin`)、使用 `which cursor` 命令以及在 `/usr`、`/opt` 和 `$HOME/.local` 目录内搜索,来尝试定位您的 Cursor 安装。如果 Cursor 安装在其他位置或通过这些方法无法找到,脚本可能会失败。请确保可以通过这些标准位置或方法之一访问到 Cursor。
|
||||
|
||||
**Windows**
|
||||
|
||||
```powershell
|
||||
@ -378,7 +388,7 @@ mv app-update.yml app-update.yml.bak
|
||||
touch app-update.yml
|
||||
chmod 444 app-update.yml
|
||||
|
||||
# 打开Cursor设置,将更新模式设置为“无”,该步骤必须执行,否则Cursor依然会自动检查更新
|
||||
# 打开Cursor设置,将更新模式设置为"无",该步骤必须执行,否则Cursor依然会自动检查更新
|
||||
# 步骤:Settings -> Application -> Update, 将Mode设置为none
|
||||
|
||||
# 注意: cursor-updater修改方法可能已失效。但为了以防万一,还是删除更新目录并创建阻止文件
|
||||
@ -395,8 +405,30 @@ touch ~/Library/Application\ Support/Caches/cursor-updater
|
||||
- ✅ 错误处理和恢复
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>重置 Cursor 免费试用</b></summary>
|
||||
|
||||
### 使用 `cursor_free_trial_reset.sh` 脚本
|
||||
|
||||
#### macOS
|
||||
|
||||
```bash
|
||||
curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_free_trial_reset.sh -o ./cursor_free_trial_reset.sh && sudo bash ./cursor_free_trial_reset.sh && rm ./cursor_free_trial_reset.sh
|
||||
```
|
||||
|
||||
#### Linux
|
||||
|
||||
```bash
|
||||
curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_free_trial_reset.sh | sudo bash
|
||||
```
|
||||
|
||||
#### Windows
|
||||
|
||||
```powershell
|
||||
irm https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_free_trial_reset.sh | iex
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## 联系方式
|
||||
|
||||
@ -410,8 +442,8 @@ touch ~/Library/Application\ Support/Caches/cursor-updater
|
||||
</td>
|
||||
<td align="center">
|
||||
<b>微信交流群</b><br>
|
||||
<img src="img/qun-8.png" width="500" alt="WeChat"><br>
|
||||
<small>二维码7天内(3月29日前)有效,过期请加微信</small>
|
||||
<img src="img/qun13.png" width="500" alt="WeChat"><br>
|
||||
<small>二维码7天内(5月30日前)有效,过期请加微信</small>
|
||||
</td>
|
||||
<td align="center">
|
||||
<b>公众号</b><br>
|
||||
|
43
README_JP.md
43
README_JP.md
@ -15,9 +15,8 @@
|
||||
> ⚠️ **重要なお知らせ**
|
||||
>
|
||||
> このツールは現在以下のバージョンをサポートしています:
|
||||
> - ✅ Cursor v0.45.x およびそれ以前のバージョン
|
||||
> - ✅ Windows: 最新の0.47.xバージョン(サポート済み)
|
||||
> - ✅ Mac/Linux: 最新の0.47.xバージョン(サポート済み、フィードバック歓迎)
|
||||
> - ✅ Windows: 最新の0.50.xバージョン(サポート済み)
|
||||
> - ✅ Mac/Linux: 最新の0.50.xバージョン(サポート済み、フィードバック歓迎)
|
||||
>
|
||||
> このツールを使用する前に、Cursorのバージョンを確認してください。
|
||||
|
||||
@ -27,21 +26,27 @@
|
||||
<div class="version-card" style="background: linear-gradient(135deg, #6e8efb, #a777e3); border-radius: 8px; padding: 15px; margin: 10px 0; color: white;">
|
||||
|
||||
### 🌟 最新バージョン
|
||||
- v0.45.11 (2025-02-07) - 最新リリース
|
||||
- v0.45.x (2025-01-03) - 最も安定したリリース
|
||||
|
||||
[完全なバージョン履歴を見る](CursorHistoryDown.md)
|
||||
[完全なバージョン履歴を見る]([CursorHistoryDown.md](https://github.com/oslook/cursor-ai-downloads?tab=readme-ov-file))
|
||||
|
||||
</div>
|
||||
|
||||
### 📥 直接ダウンロードリンク
|
||||
|
||||
**v0.45.x (推奨安定版)**
|
||||
- Windows: [公式](https://downloader.cursor.sh/builds/250103fqxdt5u9z/windows/nsis/x64) | [ミラー](https://download.todesktop.com/230313mzl4w4u92/Cursor%20Setup%200.44.11%20-%20Build%20250103fqxdt5u9z-x64.exe)
|
||||
- Mac: [Apple Silicon](https://dl.todesktop.com/230313mzl4w4u92/versions/0.44.11/mac/zip/arm64)
|
||||
|
||||
</details>
|
||||
|
||||
⚠️ **Cursorの一般的な解決策**
|
||||
> 1. Cursorを閉じ、アカウントからログアウトし、公式サイトの設定からアカウントを削除します(IPノードを更新:日本、シンガポール、アメリカ、香港など、低遅延を優先。必須ではありませんが条件が整えば変更してください。Windowsユーザーの場合はDNSキャッシュの更新をお勧めします:`ipconfig /flushdns`)
|
||||
> Cursor公式サイトで現在のアカウントを削除します
|
||||
> 手順:ユーザーアイコン->設定->左下のAdvanced▼->Delete Account
|
||||
>
|
||||
> 2. マシンコードリセットスクリプトを実行します。下記のスクリプトアドレスを参照してください。
|
||||
>
|
||||
> 3. アカウントを再登録し、ログインして、Cursorを開くと、正常に使用できるようになります。
|
||||
>
|
||||
> 4. 代替案:ステップ[**3**]の後でもまだ使用できない場合、またはアカウント登録に失敗したり、アカウントを削除できないなどの問題が発生した場合、これは通常、ブラウザがターゲットサイトに識別または制限されている(リスク管理)ことを意味します。この場合、Edge、Google Chrome、Firefoxなど別のブラウザを試してみてください(または、ブラウザのフィンガープリント情報を変更またはランダム化できるブラウザの使用を検討してください)。
|
||||
|
||||
|
||||
---
|
||||
|
||||
⚠️ **MACアドレス変更警告**
|
||||
>
|
||||
> Macユーザーの皆様へ: このスクリプトにはMACアドレス変更機能が含まれています。以下の操作が行われます:
|
||||
@ -50,14 +55,6 @@
|
||||
> - この変更により一時的にネットワーク接続が影響を受ける可能性があります
|
||||
> - 実行中にこのステップをスキップすることができます
|
||||
>
|
||||
> 💾 **Cursor v0.45.xをダウンロード**
|
||||
>
|
||||
> Windows:
|
||||
> - [Cursor公式からダウンロード](https://downloader.cursor.sh/builds/250103fqxdt5u9z/windows/nsis/x64)
|
||||
> - [ToDesktopからダウンロード](https://download.todesktop.com/230313mzl4w4u92/Cursor%20Setup%200.44.11%20-%20Build%20250103fqxdt5u9z-x64.exe)
|
||||
>
|
||||
> Mac:
|
||||
> - [Mac用ダウンロード (Apple Silicon)](https://dl.todesktop.com/230313mzl4w4u92/versions/0.44.11/mac/zip/arm64)
|
||||
|
||||
<details >
|
||||
<summary><b>🔒 自動更新機能の無効化</b></summary>
|
||||
@ -282,6 +279,8 @@ curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com
|
||||
curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_linux_id_modifier.sh | sudo bash
|
||||
```
|
||||
|
||||
> **Linuxユーザーへの注意:** スクリプトは、一般的なパス(`/usr/bin`, `/usr/local/bin`, `$HOME/.local/bin`, `/opt/cursor`, `/snap/bin`)の確認、`which cursor` コマンドの使用、および `/usr`、`/opt`、`$HOME/.local` ディレクトリ内の検索によって、Cursor のインストールを見つけようとします。Cursorが他の場所にインストールされているか、これらの方法で見つからない場合、スクリプトは失敗する可能性があります。これらの標準的な場所または方法のいずれかを通じてCursorにアクセスできることを確認してください。
|
||||
|
||||
**Windows**
|
||||
|
||||
```powershell
|
||||
@ -501,8 +500,8 @@ macOS/Linuxユーザーはシステム内で同様の`cursor-updater`ディレ
|
||||
</td>
|
||||
<td align="center">
|
||||
<b>WeChat</b><br>
|
||||
<img src="img/qun-8.png" width="500" alt="WeChat"><br>
|
||||
<em>二维码7天内(3月29日前)有效,过期请加微信</em>
|
||||
<img src="img/qun13.png" width="500" alt="WeChat"><br>
|
||||
<em>二维码7天内(5月30日前)有效,过期请加微信</em>
|
||||
</td>
|
||||
<!-- <td align="center">
|
||||
<b>ETC</b><br>
|
||||
|
@ -11,13 +11,13 @@ import (
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"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"
|
||||
)
|
||||
|
||||
// Global variables
|
||||
@ -29,7 +29,15 @@ var (
|
||||
)
|
||||
|
||||
func main() {
|
||||
setupErrorRecovery()
|
||||
// Place defer at the beginning of main to ensure it can catch panics from all subsequent function calls
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
log.Errorf("Panic recovered: %v\n", r)
|
||||
debug.PrintStack()
|
||||
waitExit()
|
||||
}
|
||||
}()
|
||||
|
||||
handleFlags()
|
||||
setupLogger()
|
||||
|
||||
@ -73,16 +81,6 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
func setupErrorRecovery() {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
log.Errorf("Panic recovered: %v\n", r)
|
||||
debug.PrintStack()
|
||||
waitExit()
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
func handleFlags() {
|
||||
flag.Parse()
|
||||
if *showVersion {
|
||||
|
BIN
img/qun-10.jpg
Normal file
BIN
img/qun-10.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 128 KiB |
BIN
img/qun-12.png
Normal file
BIN
img/qun-12.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 124 KiB |
BIN
img/qun11.jpg
Normal file
BIN
img/qun11.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 129 KiB |
BIN
img/qun13.png
Normal file
BIN
img/qun13.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 127 KiB |
BIN
img/qun9.png
Normal file
BIN
img/qun9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 126 KiB |
318
scripts/cursor_id_modifier.pot
Normal file
318
scripts/cursor_id_modifier.pot
Normal file
@ -0,0 +1,318 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: cursor_id_modifier\n"
|
||||
"POT-Creation-Date: 2025-04-25 12:00+0000\n"
|
||||
"PO-Revision-Date: 2025-04-25 12:00+0000\n"
|
||||
"Language-Team: None\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "Error: No translation file found for domain 'cursor_id_modifier' in {}/zh_CN/LC_MESSAGES/"
|
||||
msgstr ""
|
||||
|
||||
msgid "========== Cursor ID modification tool log start {} =========="
|
||||
msgstr ""
|
||||
|
||||
msgid "[INFO] {} {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "[WARN] {} {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "[ERROR] {} {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "[DEBUG] {} {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "[CMD] {} Executing command: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "[CMD] {}:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unable to get username"
|
||||
msgstr ""
|
||||
|
||||
msgid "Finding Cursor installation path..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Found Cursor installation path: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found Cursor via which: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Cursor executable not found, will try using config directory"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found Cursor via search: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Finding Cursor resource directory..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Found Cursor resource directory: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found resource directory via binary path: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Cursor resource directory not found"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please run this script with sudo"
|
||||
msgstr ""
|
||||
|
||||
msgid "Example: sudo {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Checking Cursor processes..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Getting process details for {}:"
|
||||
msgstr ""
|
||||
|
||||
msgid "No running Cursor processes found"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found running Cursor processes"
|
||||
msgstr ""
|
||||
|
||||
msgid "Attempting to terminate Cursor processes..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Attempting to forcefully terminate processes..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Waiting for processes to terminate, attempt {}/{}..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Cursor processes successfully terminated"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unable to terminate Cursor processes after {} attempts"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please manually terminate the processes and try again"
|
||||
msgstr ""
|
||||
|
||||
msgid "Configuration file does not exist, skipping backup"
|
||||
msgstr ""
|
||||
|
||||
msgid "Configuration backed up to: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Backup failed"
|
||||
msgstr ""
|
||||
|
||||
msgid "File does not exist: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unable to modify file permissions: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Generated temporary file is empty"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unable to write to file: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Machine code reset options"
|
||||
msgstr ""
|
||||
|
||||
msgid "Do you need to reset the machine code? (Usually, modifying JS files is sufficient):"
|
||||
msgstr ""
|
||||
|
||||
msgid "Don't reset - only modify JS files"
|
||||
msgstr ""
|
||||
|
||||
msgid "Reset - modify both config file and machine code"
|
||||
msgstr ""
|
||||
|
||||
msgid "[INPUT_DEBUG] Machine code reset option selected: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "You chose to reset the machine code"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found existing configuration file: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Setting new device and machine IDs..."
|
||||
msgstr ""
|
||||
|
||||
msgid "New device ID: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "New machine ID: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Configuration file modified successfully"
|
||||
msgstr ""
|
||||
|
||||
msgid "Configuration file modification failed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Configuration file not found, this is normal, skipping ID modification"
|
||||
msgstr ""
|
||||
|
||||
msgid "You chose not to reset the machine code, will only modify JS files"
|
||||
msgstr ""
|
||||
|
||||
msgid "Configuration processing completed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Finding Cursor's JS files..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Searching for JS files in resource directory: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found JS file: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "No JS files found in resource directory, trying other directories..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Searching directory: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "No modifiable JS files found"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found {} JS files to modify"
|
||||
msgstr ""
|
||||
|
||||
msgid "Starting to modify Cursor's JS files..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Unable to find modifiable JS files"
|
||||
msgstr ""
|
||||
|
||||
msgid "Processing file: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unable to create backup for file: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found x-cursor-checksum setting code"
|
||||
msgstr ""
|
||||
|
||||
msgid "Successfully modified x-cursor-checksum setting code"
|
||||
msgstr ""
|
||||
|
||||
msgid "Failed to modify x-cursor-checksum setting code"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found IOPlatformUUID keyword"
|
||||
msgstr ""
|
||||
|
||||
msgid "Successfully injected randomUUID call into a$ function"
|
||||
msgstr ""
|
||||
|
||||
msgid "Failed to modify a$ function"
|
||||
msgstr ""
|
||||
|
||||
msgid "Successfully injected randomUUID call into v5 function"
|
||||
msgstr ""
|
||||
|
||||
msgid "Failed to modify v5 function"
|
||||
msgstr ""
|
||||
|
||||
msgid "Completed universal modification"
|
||||
msgstr ""
|
||||
|
||||
msgid "File already contains custom injection code, skipping modification"
|
||||
msgstr ""
|
||||
|
||||
msgid "Completed most universal injection"
|
||||
msgstr ""
|
||||
|
||||
msgid "File has already been modified, skipping modification"
|
||||
msgstr ""
|
||||
|
||||
msgid "Failed to modify any JS files"
|
||||
msgstr ""
|
||||
|
||||
msgid "Successfully modified {} JS files"
|
||||
msgstr ""
|
||||
|
||||
msgid "Disabling Cursor auto-update..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Found update configuration file: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Disabled update configuration file: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Found updater: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Disabled updater: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "No update configuration files or updaters found"
|
||||
msgstr ""
|
||||
|
||||
msgid "Successfully disabled auto-update"
|
||||
msgstr ""
|
||||
|
||||
msgid "You selected: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "This script only supports Linux systems"
|
||||
msgstr ""
|
||||
|
||||
msgid "Script started..."
|
||||
msgstr ""
|
||||
|
||||
msgid "System information: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Current user: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "System version information"
|
||||
msgstr ""
|
||||
|
||||
msgid "Cursor Linux startup tool"
|
||||
msgstr ""
|
||||
|
||||
msgid "Important notice"
|
||||
msgstr ""
|
||||
|
||||
msgid "This tool prioritizes modifying JS files, which is safer and more reliable"
|
||||
msgstr ""
|
||||
|
||||
msgid "Modifying Cursor JS files..."
|
||||
msgstr ""
|
||||
|
||||
msgid "JS files modified successfully!"
|
||||
msgstr ""
|
||||
|
||||
msgid "JS file modification failed, but configuration file modification may have succeeded"
|
||||
msgstr ""
|
||||
|
||||
msgid "If Cursor still indicates the device is disabled after restarting, please rerun this script"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please restart Cursor to apply the new configuration"
|
||||
msgstr ""
|
||||
|
||||
msgid "Follow the WeChat public account [Pancake AI] to discuss more Cursor tips and AI knowledge (script is free, join the group via the public account for more tips and experts)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Script execution completed"
|
||||
msgstr ""
|
||||
|
||||
msgid "========== Cursor ID modification tool log end {} =========="
|
||||
msgstr ""
|
||||
|
||||
msgid "Detailed log saved to: {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "If you encounter issues, please provide this log file to the developer for troubleshooting"
|
||||
msgstr ""
|
1021
scripts/cursor_id_modifier.py
Normal file
1021
scripts/cursor_id_modifier.py
Normal file
File diff suppressed because it is too large
Load Diff
9
scripts/git-actions.sh
Executable file
9
scripts/git-actions.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
REPO_DIR="$PWD"
|
||||
LOCALES_DIR="$REPO_DIR/locales"
|
||||
msginit -i cursor_id_modifier.pot -o $LOCALES_DIR/en_US/LC_MESSAGES/cursor_id_modifier.po -l en_US
|
||||
for lang in en_US zh_CN; do
|
||||
cd $LOCALES_DIR/$lang/LC_MESSAGES
|
||||
msgfmt -o cursor_id_modifier.mo cursor_id_modifier.po
|
||||
done
|
||||
|
349
scripts/locales/en_US/LC_MESSAGES/cursor_id_modifier.po
Normal file
349
scripts/locales/en_US/LC_MESSAGES/cursor_id_modifier.po
Normal file
@ -0,0 +1,349 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: cursor_id_modifier\n"
|
||||
"POT-Creation-Date: 2025-04-25 12:00+0000\n"
|
||||
"PO-Revision-Date: 2025-04-25 09:25-0400\n"
|
||||
"Language-Team: English\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Last-Translator: Poikilos using Grok <7557867+poikilos@users.noreply.github.com>\n"
|
||||
"Language: en_US\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
msgid ""
|
||||
"Error: No translation file found for domain 'cursor_id_modifier' in {}/zh_CN/"
|
||||
"LC_MESSAGES/"
|
||||
msgstr ""
|
||||
"Error: No translation file found for domain 'cursor_id_modifier' in {}/zh_CN/"
|
||||
"LC_MESSAGES/"
|
||||
|
||||
msgid "========== Cursor ID modification tool log start {} =========="
|
||||
msgstr "========== Cursor ID modification tool log start {} =========="
|
||||
|
||||
msgid "[INFO] {} {}"
|
||||
msgstr "[INFO] {} {}"
|
||||
|
||||
msgid "[WARN] {} {}"
|
||||
msgstr "[WARN] {} {}"
|
||||
|
||||
msgid "[ERROR] {} {}"
|
||||
msgstr "[ERROR] {} {}"
|
||||
|
||||
msgid "[DEBUG] {} {}"
|
||||
msgstr "[DEBUG] {} {}"
|
||||
|
||||
msgid "[CMD] {} Executing command: {}"
|
||||
msgstr "[CMD] {} Executing command: {}"
|
||||
|
||||
msgid "[CMD] {}:"
|
||||
msgstr "[CMD] {}:"
|
||||
|
||||
msgid "Unable to get username"
|
||||
msgstr "Unable to get username"
|
||||
|
||||
msgid "Finding Cursor installation path..."
|
||||
msgstr "Finding Cursor installation path..."
|
||||
|
||||
msgid "Found Cursor installation path: {}"
|
||||
msgstr "Found Cursor installation path: {}"
|
||||
|
||||
msgid "Found Cursor via which: {}"
|
||||
msgstr "Found Cursor via which: {}"
|
||||
|
||||
msgid "Cursor executable not found, will try using config directory"
|
||||
msgstr "Cursor executable not found, will try using config directory"
|
||||
|
||||
msgid "Found Cursor via search: {}"
|
||||
msgstr "Found Cursor via search: {}"
|
||||
|
||||
msgid "Finding Cursor resource directory..."
|
||||
msgstr "Finding Cursor resource directory..."
|
||||
|
||||
msgid "Found Cursor resource directory: {}"
|
||||
msgstr "Found Cursor resource directory: {}"
|
||||
|
||||
msgid "Found resource directory via binary path: {}"
|
||||
msgstr "Found resource directory via binary path: {}"
|
||||
|
||||
msgid "Cursor resource directory not found"
|
||||
msgstr "Cursor resource directory not found"
|
||||
|
||||
msgid "Please run this script with sudo"
|
||||
msgstr "Please run this script with sudo"
|
||||
|
||||
msgid "Example: sudo {}"
|
||||
msgstr "Example: sudo {}"
|
||||
|
||||
msgid "Checking Cursor processes..."
|
||||
msgstr "Checking Cursor processes..."
|
||||
|
||||
msgid "Getting process details for {}:"
|
||||
msgstr "Getting process details for {}:"
|
||||
|
||||
msgid "No running Cursor processes found"
|
||||
msgstr "No running Cursor processes found"
|
||||
|
||||
msgid "Found running Cursor processes"
|
||||
msgstr "Found running Cursor processes"
|
||||
|
||||
msgid "Attempting to terminate Cursor processes..."
|
||||
msgstr "Attempting to terminate Cursor processes..."
|
||||
|
||||
msgid "Attempting to forcefully terminate processes..."
|
||||
msgstr "Attempting to forcefully terminate processes..."
|
||||
|
||||
msgid "Waiting for processes to terminate, attempt {}/{}..."
|
||||
msgstr "Waiting for processes to terminate, attempt {}/{}..."
|
||||
|
||||
msgid "Cursor processes successfully terminated"
|
||||
msgstr "Cursor processes successfully terminated"
|
||||
|
||||
msgid "Unable to terminate Cursor processes after {} attempts"
|
||||
msgstr "Unable to terminate Cursor processes after {} attempts"
|
||||
|
||||
msgid "Please manually terminate the processes and try again"
|
||||
msgstr "Please manually terminate the processes and try again"
|
||||
|
||||
msgid "Configuration file does not exist, skipping backup"
|
||||
msgstr "Configuration file does not exist, skipping backup"
|
||||
|
||||
msgid "Configuration backed up to: {}"
|
||||
msgstr "Configuration backed up to: {}"
|
||||
|
||||
msgid "Backup failed"
|
||||
msgstr "Backup failed"
|
||||
|
||||
msgid "File does not exist: {}"
|
||||
msgstr "File does not exist: {}"
|
||||
|
||||
msgid "Unable to modify file permissions: {}"
|
||||
msgstr "Unable to modify file permissions: {}"
|
||||
|
||||
msgid "Generated temporary file is empty"
|
||||
msgstr "Generated temporary file is empty"
|
||||
|
||||
msgid "Unable to write to file: {}"
|
||||
msgstr "Unable to write to file: {}"
|
||||
|
||||
msgid "Machine code reset options"
|
||||
msgstr "Machine code reset options"
|
||||
|
||||
msgid ""
|
||||
"Do you need to reset the machine code? (Usually, modifying JS files is "
|
||||
"sufficient):"
|
||||
msgstr ""
|
||||
"Do you need to reset the machine code? (Usually, modifying JS files is "
|
||||
"sufficient):"
|
||||
|
||||
msgid "Don't reset - only modify JS files"
|
||||
msgstr "Don't reset - only modify JS files"
|
||||
|
||||
msgid "Reset - modify both config file and machine code"
|
||||
msgstr "Reset - modify both config file and machine code"
|
||||
|
||||
msgid "[INPUT_DEBUG] Machine code reset option selected: {}"
|
||||
msgstr "[INPUT_DEBUG] Machine code reset option selected: {}"
|
||||
|
||||
msgid "You chose to reset the machine code"
|
||||
msgstr "You chose to reset the machine code"
|
||||
|
||||
msgid "Found existing configuration file: {}"
|
||||
msgstr "Found existing configuration file: {}"
|
||||
|
||||
msgid "Setting new device and machine IDs..."
|
||||
msgstr "Setting new device and machine IDs..."
|
||||
|
||||
msgid "New device ID: {}"
|
||||
msgstr "New device ID: {}"
|
||||
|
||||
msgid "New machine ID: {}"
|
||||
msgstr "New machine ID: {}"
|
||||
|
||||
msgid "Configuration file modified successfully"
|
||||
msgstr "Configuration file modified successfully"
|
||||
|
||||
msgid "Configuration file modification failed"
|
||||
msgstr "Configuration file modification failed"
|
||||
|
||||
msgid "Configuration file not found, this is normal, skipping ID modification"
|
||||
msgstr "Configuration file not found, this is normal, skipping ID modification"
|
||||
|
||||
msgid "You chose not to reset the machine code, will only modify JS files"
|
||||
msgstr "You chose not to reset the machine code, will only modify JS files"
|
||||
|
||||
msgid "Configuration processing completed"
|
||||
msgstr "Configuration processing completed"
|
||||
|
||||
msgid "Finding Cursor's JS files..."
|
||||
msgstr "Finding Cursor's JS files..."
|
||||
|
||||
msgid "Searching for JS files in resource directory: {}"
|
||||
msgstr "Searching for JS files in resource directory: {}"
|
||||
|
||||
msgid "Found JS file: {}"
|
||||
msgstr "Found JS file: {}"
|
||||
|
||||
msgid "No JS files found in resource directory, trying other directories..."
|
||||
msgstr "No JS files found in resource directory, trying other directories..."
|
||||
|
||||
msgid "Searching directory: {}"
|
||||
msgstr "Searching directory: {}"
|
||||
|
||||
msgid "No modifiable JS files found"
|
||||
msgstr "No modifiable JS files found"
|
||||
|
||||
msgid "Found {} JS files to modify"
|
||||
msgstr "Found {} JS files to modify"
|
||||
|
||||
msgid "Starting to modify Cursor's JS files..."
|
||||
msgstr "Starting to modify Cursor's JS files..."
|
||||
|
||||
msgid "Unable to find modifiable JS files"
|
||||
msgstr "Unable to find modifiable JS files"
|
||||
|
||||
msgid "Processing file: {}"
|
||||
msgstr "Processing file: {}"
|
||||
|
||||
msgid "Unable to create backup for file: {}"
|
||||
msgstr "Unable to create backup for file: {}"
|
||||
|
||||
msgid "Found x-cursor-checksum setting code"
|
||||
msgstr "Found x-cursor-checksum setting code"
|
||||
|
||||
msgid "Successfully modified x-cursor-checksum setting code"
|
||||
msgstr "Successfully modified x-cursor-checksum setting code"
|
||||
|
||||
msgid "Failed to modify x-cursor-checksum setting code"
|
||||
msgstr "Failed to modify x-cursor-checksum setting code"
|
||||
|
||||
msgid "Found IOPlatformUUID keyword"
|
||||
msgstr "Found IOPlatformUUID keyword"
|
||||
|
||||
msgid "Successfully injected randomUUID call into a$ function"
|
||||
msgstr "Successfully injected randomUUID call into a$ function"
|
||||
|
||||
msgid "Failed to modify a$ function"
|
||||
msgstr "Failed to modify a$ function"
|
||||
|
||||
msgid "Successfully injected randomUUID call into v5 function"
|
||||
msgstr "Successfully injected randomUUID call into v5 function"
|
||||
|
||||
msgid "Failed to modify v5 function"
|
||||
msgstr "Failed to modify v5 function"
|
||||
|
||||
msgid "Completed universal modification"
|
||||
msgstr "Completed universal modification"
|
||||
|
||||
msgid "File already contains custom injection code, skipping modification"
|
||||
msgstr "File already contains custom injection code, skipping modification"
|
||||
|
||||
msgid "Completed most universal injection"
|
||||
msgstr "Completed most universal injection"
|
||||
|
||||
msgid "File has already been modified, skipping modification"
|
||||
msgstr "File has already been modified, skipping modification"
|
||||
|
||||
msgid "Failed to modify any JS files"
|
||||
msgstr "Failed to modify any JS files"
|
||||
|
||||
msgid "Successfully modified {} JS files"
|
||||
msgstr "Successfully modified {} JS files"
|
||||
|
||||
msgid "Disabling Cursor auto-update..."
|
||||
msgstr "Disabling Cursor auto-update..."
|
||||
|
||||
msgid "Found update configuration file: {}"
|
||||
msgstr "Found update configuration file: {}"
|
||||
|
||||
msgid "Disabled update configuration file: {}"
|
||||
msgstr "Disabled update configuration file: {}"
|
||||
|
||||
msgid "Found updater: {}"
|
||||
msgstr "Found updater: {}"
|
||||
|
||||
msgid "Disabled updater: {}"
|
||||
msgstr "Disabled updater: {}"
|
||||
|
||||
msgid "No update configuration files or updaters found"
|
||||
msgstr "No update configuration files or updaters found"
|
||||
|
||||
msgid "Successfully disabled auto-update"
|
||||
msgstr "Successfully disabled auto-update"
|
||||
|
||||
msgid "You selected: {}"
|
||||
msgstr "You selected: {}"
|
||||
|
||||
msgid "This script only supports Linux systems"
|
||||
msgstr "This script only supports Linux systems"
|
||||
|
||||
msgid "Script started..."
|
||||
msgstr "Script started..."
|
||||
|
||||
msgid "System information: {}"
|
||||
msgstr "System information: {}"
|
||||
|
||||
msgid "Current user: {}"
|
||||
msgstr "Current user: {}"
|
||||
|
||||
msgid "System version information"
|
||||
msgstr "System version information"
|
||||
|
||||
msgid "Cursor Linux startup tool"
|
||||
msgstr "Cursor Linux startup tool"
|
||||
|
||||
msgid "Important notice"
|
||||
msgstr "Important notice"
|
||||
|
||||
msgid ""
|
||||
"This tool prioritizes modifying JS files, which is safer and more reliable"
|
||||
msgstr ""
|
||||
"This tool prioritizes modifying JS files, which is safer and more reliable"
|
||||
|
||||
msgid "Modifying Cursor JS files..."
|
||||
msgstr "Modifying Cursor JS files..."
|
||||
|
||||
msgid "JS files modified successfully!"
|
||||
msgstr "JS files modified successfully!"
|
||||
|
||||
msgid ""
|
||||
"JS file modification failed, but configuration file modification may have "
|
||||
"succeeded"
|
||||
msgstr ""
|
||||
"JS file modification failed, but configuration file modification may have "
|
||||
"succeeded"
|
||||
|
||||
msgid ""
|
||||
"If Cursor still indicates the device is disabled after restarting, please "
|
||||
"rerun this script"
|
||||
msgstr ""
|
||||
"If Cursor still indicates the device is disabled after restarting, please "
|
||||
"rerun this script"
|
||||
|
||||
msgid "Please restart Cursor to apply the new configuration"
|
||||
msgstr "Please restart Cursor to apply the new configuration"
|
||||
|
||||
msgid ""
|
||||
"Follow the WeChat public account [Pancake AI] to discuss more Cursor tips "
|
||||
"and AI knowledge (script is free, join the group via the public account for "
|
||||
"more tips and experts)"
|
||||
msgstr ""
|
||||
"Follow the WeChat public account [Pancake AI] to discuss more Cursor tips "
|
||||
"and AI knowledge (script is free, join the group via the public account for "
|
||||
"more tips and experts)"
|
||||
|
||||
msgid "Script execution completed"
|
||||
msgstr "Script execution completed"
|
||||
|
||||
msgid "========== Cursor ID modification tool log end {} =========="
|
||||
msgstr "========== Cursor ID modification tool log end {} =========="
|
||||
|
||||
msgid "Detailed log saved to: {}"
|
||||
msgstr "Detailed log saved to: {}"
|
||||
|
||||
msgid ""
|
||||
"If you encounter issues, please provide this log file to the developer for "
|
||||
"troubleshooting"
|
||||
msgstr ""
|
||||
"If you encounter issues, please provide this log file to the developer for "
|
||||
"troubleshooting"
|
BIN
scripts/locales/zh_CN/LC_MESSAGES/cursor_id_modifier.mo
Normal file
BIN
scripts/locales/zh_CN/LC_MESSAGES/cursor_id_modifier.mo
Normal file
Binary file not shown.
320
scripts/locales/zh_CN/LC_MESSAGES/cursor_id_modifier.po
Normal file
320
scripts/locales/zh_CN/LC_MESSAGES/cursor_id_modifier.po
Normal file
@ -0,0 +1,320 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: cursor_id_modifier\n"
|
||||
"POT-Creation-Date: 2025-04-25 12:00+0000\n"
|
||||
"PO-Revision-Date: 2025-04-25 12:00+0000\n"
|
||||
"Last-Translator: None\n"
|
||||
"Language-Team: Chinese\n"
|
||||
"Language: zh_CN\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "Error: No translation file found for domain 'cursor_id_modifier' in {}/zh_CN/LC_MESSAGES/"
|
||||
msgstr "错误:未在 {}/zh_CN/LC_MESSAGES/ 中找到域 'cursor_id_modifier' 的翻译文件"
|
||||
|
||||
msgid "========== Cursor ID modification tool log start {} =========="
|
||||
msgstr "========== Cursor ID 修改工具日志开始 {} =========="
|
||||
|
||||
msgid "[INFO] {} {}"
|
||||
msgstr "[INFO] {} {}"
|
||||
|
||||
msgid "[WARN] {} {}"
|
||||
msgstr "[WARN] {} {}"
|
||||
|
||||
msgid "[ERROR] {} {}"
|
||||
msgstr "[ERROR] {} {}"
|
||||
|
||||
msgid "[DEBUG] {} {}"
|
||||
msgstr "[DEBUG] {} {}"
|
||||
|
||||
msgid "[CMD] {} Executing command: {}"
|
||||
msgstr "[CMD] {} 执行命令: {}"
|
||||
|
||||
msgid "[CMD] {}:"
|
||||
msgstr "[CMD] {}:"
|
||||
|
||||
msgid "Unable to get username"
|
||||
msgstr "无法获取用户名"
|
||||
|
||||
msgid "Finding Cursor installation path..."
|
||||
msgstr "查找Cursor安装路径..."
|
||||
|
||||
msgid "Found Cursor installation path: {}"
|
||||
msgstr "找到Cursor安装路径: {}"
|
||||
|
||||
msgid "Found Cursor via which: {}"
|
||||
msgstr "通过which找到Cursor: {}"
|
||||
|
||||
msgid "Cursor executable not found, will try using config directory"
|
||||
msgstr "未找到Cursor可执行文件,将尝试使用配置目录"
|
||||
|
||||
msgid "Found Cursor via search: {}"
|
||||
msgstr "通过查找找到Cursor: {}"
|
||||
|
||||
msgid "Finding Cursor resource directory..."
|
||||
msgstr "查找Cursor资源目录..."
|
||||
|
||||
msgid "Found Cursor resource directory: {}"
|
||||
msgstr "找到Cursor资源目录: {}"
|
||||
|
||||
msgid "Found resource directory via binary path: {}"
|
||||
msgstr "通过二进制路径找到资源目录: {}"
|
||||
|
||||
msgid "Cursor resource directory not found"
|
||||
msgstr "未找到Cursor资源目录"
|
||||
|
||||
msgid "Please run this script with sudo"
|
||||
msgstr "请使用 sudo 运行此脚本"
|
||||
|
||||
msgid "Example: sudo {}"
|
||||
msgstr "示例: sudo {}"
|
||||
|
||||
msgid "Checking Cursor processes..."
|
||||
msgstr "检查 Cursor 进程..."
|
||||
|
||||
msgid "Getting process details for {}:"
|
||||
msgstr "正在获取 {} 进程详细信息:"
|
||||
|
||||
msgid "No running Cursor processes found"
|
||||
msgstr "未发现运行中的 Cursor 进程"
|
||||
|
||||
msgid "Found running Cursor processes"
|
||||
msgstr "发现 Cursor 进程正在运行"
|
||||
|
||||
msgid "Attempting to terminate Cursor processes..."
|
||||
msgstr "尝试关闭 Cursor 进程..."
|
||||
|
||||
msgid "Attempting to forcefully terminate processes..."
|
||||
msgstr "尝试强制终止进程..."
|
||||
|
||||
msgid "Waiting for processes to terminate, attempt {}/{}..."
|
||||
msgstr "等待进程关闭,尝试 {}/{}..."
|
||||
|
||||
msgid "Cursor processes successfully terminated"
|
||||
msgstr "Cursor 进程已成功关闭"
|
||||
|
||||
msgid "Unable to terminate Cursor processes after {} attempts"
|
||||
msgstr "在 {} 次尝试后仍无法关闭 Cursor 进程"
|
||||
|
||||
msgid "Please manually terminate the processes and try again"
|
||||
msgstr "请手动关闭进程后重试"
|
||||
|
||||
msgid "Configuration file does not exist, skipping backup"
|
||||
msgstr "配置文件不存在,跳过备份"
|
||||
|
||||
msgid "Configuration backed up to: {}"
|
||||
msgstr "配置已备份到: {}"
|
||||
|
||||
msgid "Backup failed"
|
||||
msgstr "备份失败"
|
||||
|
||||
msgid "File does not exist: {}"
|
||||
msgstr "文件不存在: {}"
|
||||
|
||||
msgid "Unable to modify file permissions: {}"
|
||||
msgstr "无法修改文件权限: {}"
|
||||
|
||||
msgid "Generated temporary file is empty"
|
||||
msgstr "生成的临时文件为空"
|
||||
|
||||
msgid "Unable to write to file: {}"
|
||||
msgstr "无法写入文件: {}"
|
||||
|
||||
msgid "Machine code reset options"
|
||||
msgstr "机器码重置选项"
|
||||
|
||||
msgid "Do you need to reset the machine code? (Usually, modifying JS files is sufficient):"
|
||||
msgstr "是否需要重置机器码? (通常情况下,只修改js文件即可):"
|
||||
|
||||
msgid "Don't reset - only modify JS files"
|
||||
msgstr "不重置 - 仅修改js文件即可"
|
||||
|
||||
msgid "Reset - modify both config file and machine code"
|
||||
msgstr "重置 - 同时修改配置文件和机器码"
|
||||
|
||||
msgid "[INPUT_DEBUG] Machine code reset option selected: {}"
|
||||
msgstr "[INPUT_DEBUG] 机器码重置选项选择: {}"
|
||||
|
||||
msgid "You chose to reset the machine code"
|
||||
msgstr "您选择了重置机器码"
|
||||
|
||||
msgid "Found existing configuration file: {}"
|
||||
msgstr "发现已有配置文件: {}"
|
||||
|
||||
msgid "Setting new device and machine IDs..."
|
||||
msgstr "正在设置新的设备和机器ID..."
|
||||
|
||||
msgid "New device ID: {}"
|
||||
msgstr "新设备ID: {}"
|
||||
|
||||
msgid "New machine ID: {}"
|
||||
msgstr "新机器ID: {}"
|
||||
|
||||
msgid "Configuration file modified successfully"
|
||||
msgstr "配置文件修改成功"
|
||||
|
||||
msgid "Configuration file modification failed"
|
||||
msgstr "配置文件修改失败"
|
||||
|
||||
msgid "Configuration file not found, this is normal, skipping ID modification"
|
||||
msgstr "未找到配置文件,这是正常的,脚本将跳过ID修改"
|
||||
|
||||
msgid "You chose not to reset the machine code, will only modify JS files"
|
||||
msgstr "您选择了不重置机器码,将仅修改js文件"
|
||||
|
||||
msgid "Configuration processing completed"
|
||||
msgstr "配置处理完成"
|
||||
|
||||
msgid "Finding Cursor's JS files..."
|
||||
msgstr "查找Cursor的JS文件..."
|
||||
|
||||
msgid "Searching for JS files in resource directory: {}"
|
||||
msgstr "在资源目录中搜索JS文件: {}"
|
||||
|
||||
msgid "Found JS file: {}"
|
||||
msgstr "找到JS文件: {}"
|
||||
|
||||
msgid "No JS files found in resource directory, trying other directories..."
|
||||
msgstr "在资源目录中未找到JS文件,尝试在其他目录中搜索..."
|
||||
|
||||
msgid "Searching directory: {}"
|
||||
msgstr "搜索目录: {}"
|
||||
|
||||
msgid "No modifiable JS files found"
|
||||
msgstr "未找到任何可修改的JS文件"
|
||||
|
||||
msgid "Found {} JS files to modify"
|
||||
msgstr "找到 {} 个JS文件需要修改"
|
||||
|
||||
msgid "Starting to modify Cursor's JS files..."
|
||||
msgstr "开始修改Cursor的JS文件..."
|
||||
|
||||
msgid "Unable to find modifiable JS files"
|
||||
msgstr "无法找到可修改的JS文件"
|
||||
|
||||
msgid "Processing file: {}"
|
||||
msgstr "处理文件: {}"
|
||||
|
||||
msgid "Unable to create backup for file: {}"
|
||||
msgstr "无法创建文件备份: {}"
|
||||
|
||||
msgid "Found x-cursor-checksum setting code"
|
||||
msgstr "找到 x-cursor-checksum 设置代码"
|
||||
|
||||
msgid "Successfully modified x-cursor-checksum setting code"
|
||||
msgstr "成功修改 x-cursor-checksum 设置代码"
|
||||
|
||||
msgid "Failed to modify x-cursor-checksum setting code"
|
||||
msgstr "修改 x-cursor-checksum 设置代码失败"
|
||||
|
||||
msgid "Found IOPlatformUUID keyword"
|
||||
msgstr "找到 IOPlatformUUID 关键字"
|
||||
|
||||
msgid "Successfully injected randomUUID call into a$ function"
|
||||
msgstr "成功注入 randomUUID 调用到 a$ 函数"
|
||||
|
||||
msgid "Failed to modify a$ function"
|
||||
msgstr "修改 a$ 函数失败"
|
||||
|
||||
msgid "Successfully injected randomUUID call into v5 function"
|
||||
msgstr "成功注入 randomUUID 调用到 v5 函数"
|
||||
|
||||
msgid "Failed to modify v5 function"
|
||||
msgstr "修改 v5 函数失败"
|
||||
|
||||
msgid "Completed universal modification"
|
||||
msgstr "完成通用修改"
|
||||
|
||||
msgid "File already contains custom injection code, skipping modification"
|
||||
msgstr "文件已经包含自定义注入代码,跳过修改"
|
||||
|
||||
msgid "Completed most universal injection"
|
||||
msgstr "完成最通用注入"
|
||||
|
||||
msgid "File has already been modified, skipping modification"
|
||||
msgstr "文件已经被修改过,跳过修改"
|
||||
|
||||
msgid "Failed to modify any JS files"
|
||||
msgstr "未能成功修改任何JS文件"
|
||||
|
||||
msgid "Successfully modified {} JS files"
|
||||
msgstr "成功修改了 {} 个JS文件"
|
||||
|
||||
msgid "Disabling Cursor auto-update..."
|
||||
msgstr "正在禁用 Cursor 自动更新..."
|
||||
|
||||
msgid "Found update configuration file: {}"
|
||||
msgstr "找到更新配置文件: {}"
|
||||
|
||||
msgid "Disabled update configuration file: {}"
|
||||
msgstr "已禁用更新配置文件: {}"
|
||||
|
||||
msgid "Found updater: {}"
|
||||
msgstr "找到更新程序: {}"
|
||||
|
||||
msgid "Disabled updater: {}"
|
||||
msgstr "已禁用更新程序: {}"
|
||||
|
||||
msgid "No update configuration files or updaters found"
|
||||
msgstr "未找到任何更新配置文件或更新程序"
|
||||
|
||||
msgid "Successfully disabled auto-update"
|
||||
msgstr "成功禁用了自动更新"
|
||||
|
||||
msgid "You selected: {}"
|
||||
msgstr "您选择了: {}"
|
||||
|
||||
msgid "This script only supports Linux systems"
|
||||
msgstr "本脚本仅支持 Linux 系统"
|
||||
|
||||
msgid "Script started..."
|
||||
msgstr "脚本启动..."
|
||||
|
||||
msgid "System information: {}"
|
||||
msgstr "系统信息: {}"
|
||||
|
||||
msgid "Current user: {}"
|
||||
msgstr "当前用户: {}"
|
||||
|
||||
msgid "System version information"
|
||||
msgstr "系统版本信息"
|
||||
|
||||
msgid "Cursor Linux startup tool"
|
||||
msgstr "Cursor Linux 启动工具"
|
||||
|
||||
msgid "Important notice"
|
||||
msgstr "重要提示"
|
||||
|
||||
msgid "This tool prioritizes modifying JS files, which is safer and more reliable"
|
||||
msgstr "本工具优先修改js文件,更加安全可靠"
|
||||
|
||||
msgid "Modifying Cursor JS files..."
|
||||
msgstr "正在修改Cursor JS文件..."
|
||||
|
||||
msgid "JS files modified successfully!"
|
||||
msgstr "JS文件修改成功!"
|
||||
|
||||
msgid "JS file modification failed, but configuration file modification may have succeeded"
|
||||
msgstr "JS文件修改失败,但配置文件修改可能已成功"
|
||||
|
||||
msgid "If Cursor still indicates the device is disabled after restarting, please rerun this script"
|
||||
msgstr "如果重启后 Cursor 仍然提示设备被禁用,请重新运行此脚本"
|
||||
|
||||
msgid "Please restart Cursor to apply the new configuration"
|
||||
msgstr "请重启 Cursor 以应用新的配置"
|
||||
|
||||
msgid "Follow the WeChat public account [Pancake AI] to discuss more Cursor tips and AI knowledge (script is free, join the group via the public account for more tips and experts)"
|
||||
msgstr "关注公众号【煎饼果子卷AI】一起交流更多Cursor技巧和AI知识(脚本免费、关注公众号加群有更多技巧和大佬)"
|
||||
|
||||
msgid "Script execution completed"
|
||||
msgstr "脚本执行完成"
|
||||
|
||||
msgid "========== Cursor ID modification tool log end {} =========="
|
||||
msgstr "========== Cursor ID 修改工具日志结束 {} =========="
|
||||
|
||||
msgid "Detailed log saved to: {}"
|
||||
msgstr "详细日志已保存到: {}"
|
||||
|
||||
msgid "If you encounter issues, please provide this log file to the developer for troubleshooting"
|
||||
msgstr "如遇问题请将此日志文件提供给开发者以协助排查"
|
1392
scripts/run/cursor_linux_id_modifier.sh
Normal file → Executable file
1392
scripts/run/cursor_linux_id_modifier.sh
Normal file → Executable file
File diff suppressed because it is too large
Load Diff
1122
scripts/run/cursor_mac_free_trial_reset.sh
Normal file
1122
scripts/run/cursor_mac_free_trial_reset.sh
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,70 @@ $NC = "`e[0m"
|
||||
$STORAGE_FILE = "$env:APPDATA\Cursor\User\globalStorage\storage.json"
|
||||
$BACKUP_DIR = "$env:APPDATA\Cursor\User\globalStorage\backups"
|
||||
|
||||
# 新增 Cursor 初始化函数
|
||||
function Cursor-初始化 {
|
||||
Write-Host "$GREEN[信息]$NC 正在执行 Cursor 初始化清理..."
|
||||
$BASE_PATH = "$env:APPDATA\Cursor\User"
|
||||
|
||||
$filesToDelete = @(
|
||||
(Join-Path -Path $BASE_PATH -ChildPath "globalStorage\\state.vscdb"),
|
||||
(Join-Path -Path $BASE_PATH -ChildPath "globalStorage\\state.vscdb.backup")
|
||||
)
|
||||
|
||||
$folderToCleanContents = Join-Path -Path $BASE_PATH -ChildPath "History"
|
||||
$folderToDeleteCompletely = Join-Path -Path $BASE_PATH -ChildPath "workspaceStorage"
|
||||
|
||||
Write-Host "$BLUE[调试]$NC 基础路径: $BASE_PATH"
|
||||
|
||||
# 删除指定文件
|
||||
foreach ($file in $filesToDelete) {
|
||||
Write-Host "$BLUE[调试]$NC 检查文件: $file"
|
||||
if (Test-Path $file) {
|
||||
try {
|
||||
Remove-Item -Path $file -Force -ErrorAction Stop
|
||||
Write-Host "$GREEN[成功]$NC 已删除文件: $file"
|
||||
}
|
||||
catch {
|
||||
Write-Host "$RED[错误]$NC 删除文件 $file 失败: $($_.Exception.Message)"
|
||||
}
|
||||
} else {
|
||||
Write-Host "$YELLOW[警告]$NC 文件不存在,跳过删除: $file"
|
||||
}
|
||||
}
|
||||
|
||||
# 清空指定文件夹内容
|
||||
Write-Host "$BLUE[调试]$NC 检查待清空文件夹: $folderToCleanContents"
|
||||
if (Test-Path $folderToCleanContents) {
|
||||
try {
|
||||
# 获取子项进行删除,以避免删除 History 文件夹本身
|
||||
Get-ChildItem -Path $folderToCleanContents -Recurse | Remove-Item -Recurse -Force -ErrorAction Stop
|
||||
Write-Host "$GREEN[成功]$NC 已清空文件夹内容: $folderToCleanContents"
|
||||
}
|
||||
catch {
|
||||
Write-Host "$RED[错误]$NC 清空文件夹 $folderToCleanContents 内容失败: $($_.Exception.Message)"
|
||||
}
|
||||
} else {
|
||||
Write-Host "$YELLOW[警告]$NC 文件夹不存在,跳过清空: $folderToCleanContents"
|
||||
}
|
||||
|
||||
# 删除指定文件夹及其内容
|
||||
Write-Host "$BLUE[调试]$NC 检查待删除文件夹: $folderToDeleteCompletely"
|
||||
if (Test-Path $folderToDeleteCompletely) {
|
||||
try {
|
||||
Remove-Item -Path $folderToDeleteCompletely -Recurse -Force -ErrorAction Stop
|
||||
Write-Host "$GREEN[成功]$NC 已删除文件夹: $folderToDeleteCompletely"
|
||||
}
|
||||
catch {
|
||||
Write-Host "$RED[错误]$NC 删除文件夹 $folderToDeleteCompletely 失败: $($_.Exception.Message)"
|
||||
}
|
||||
} else {
|
||||
Write-Host "$YELLOW[警告]$NC 文件夹不存在,跳过删除: $folderToDeleteCompletely"
|
||||
}
|
||||
|
||||
Write-Host "$GREEN[信息]$NC Cursor 初始化清理完成。"
|
||||
Write-Host "" # 添加空行以改善输出格式
|
||||
}
|
||||
|
||||
# 检查管理员权限
|
||||
function Test-Administrator {
|
||||
$user = [Security.Principal.WindowsIdentity]::GetCurrent()
|
||||
@ -44,14 +108,15 @@ Write-Host "$GREEN Cursor 设备ID 修改工具 $NC"
|
||||
Write-Host "$YELLOW 关注公众号【煎饼果子卷AI】 $NC"
|
||||
Write-Host "$YELLOW 一起交流更多Cursor技巧和AI知识(脚本免费、关注公众号加群有更多技巧和大佬) $NC"
|
||||
Write-Host "$YELLOW [重要提示] 本工具免费,如果对您有帮助,请关注公众号【煎饼果子卷AI】 $NC"
|
||||
Write-Host "$BLUE================================$NC"
|
||||
Write-Host ""
|
||||
Write-Host "$YELLOW [小小广告] 出售CursorPro教育号一年质保三个月,有需要找我(86),WeChat:JavaRookie666 $NC"
|
||||
Write-Host "$BLUE================================$NC"
|
||||
|
||||
# 获取并显示 Cursor 版本
|
||||
function Get-CursorVersion {
|
||||
try {
|
||||
# 主要检测路径
|
||||
$packagePath = "$env:LOCALAPPDATA\Programs\cursor\resources\app\package.json"
|
||||
$packagePath = "$env:LOCALAPPDATA\\Programs\\cursor\\resources\\app\\package.json"
|
||||
|
||||
if (Test-Path $packagePath) {
|
||||
$packageJson = Get-Content $packagePath -Raw | ConvertFrom-Json
|
||||
@ -62,7 +127,7 @@ function Get-CursorVersion {
|
||||
}
|
||||
|
||||
# 备用路径检测
|
||||
$altPath = "$env:LOCALAPPDATA\cursor\resources\app\package.json"
|
||||
$altPath = "$env:LOCALAPPDATA\\cursor\\resources\\app\\package.json"
|
||||
if (Test-Path $altPath) {
|
||||
$packageJson = Get-Content $altPath -Raw | ConvertFrom-Json
|
||||
if ($packageJson.version) {
|
||||
@ -85,7 +150,7 @@ function Get-CursorVersion {
|
||||
$cursorVersion = Get-CursorVersion
|
||||
Write-Host ""
|
||||
|
||||
Write-Host "$YELLOW[重要提示]$NC 最新的 0.47.x (以支持)"
|
||||
Write-Host "$YELLOW[重要提示]$NC 最新的 0.50.x (以支持)"
|
||||
Write-Host ""
|
||||
|
||||
# 检查并关闭 Cursor 进程
|
||||
@ -139,6 +204,9 @@ function Close-CursorProcess {
|
||||
Close-CursorProcess "Cursor"
|
||||
Close-CursorProcess "cursor"
|
||||
|
||||
# 执行 Cursor 初始化清理
|
||||
# Cursor-初始化
|
||||
|
||||
# 创建备份目录
|
||||
if (-not (Test-Path $BACKUP_DIR)) {
|
||||
New-Item -ItemType Directory -Path $BACKUP_DIR | Out-Null
|
||||
@ -536,13 +604,4 @@ function Write-ConfigFile {
|
||||
catch {
|
||||
throw "写入配置文件失败: $_"
|
||||
}
|
||||
}
|
||||
|
||||
# 获取并显示版本信息
|
||||
$cursorVersion = Get-CursorVersion
|
||||
Write-Host ""
|
||||
if ($cursorVersion) {
|
||||
Write-Host "$GREEN[信息]$NC 检测到 Cursor 版本: $cursorVersion,继续执行..."
|
||||
} else {
|
||||
Write-Host "$YELLOW[警告]$NC 无法检测版本,将继续执行..."
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user