Browse Source

Update README.md and cursor_linux_id_modifier.sh for improved user guidance and script functionality

- Enhanced README.md by updating WeChat contact information and adding a WeChat appreciation code section for better user engagement.
- Increased image sizes for better visibility in the README.
- Refined the sed command syntax in cursor_linux_id_modifier.sh for improved readability and consistency in modifying telemetry IDs.
- Ensured overall clarity and usability improvements across both the documentation and script.
pull/122/head v0.0.43
煎饼果子卷鲨鱼辣椒 5 months ago
parent
commit
99c8e55475
  1. 13
      README.md
  2. BIN
      img/wx_zsm.jpg
  3. 8
      scripts/run/cursor_linux_id_modifier.sh

13
README.md

@ -195,19 +195,24 @@ You've reached your trial request limit.
<tr> <tr>
<td align="center"> <td align="center">
<b>个人微信</b><br> <b>个人微信</b><br>
<img src="img/wx_me.png" width="150" alt="作者微信"><br>
<b>JavaRookie666</b>
<img src="img/wx_me.png" width="250" alt="作者微信"><br>
<b>微信:JavaRookie666</b>
</td> </td>
<td align="center"> <td align="center">
<b>微信交流群</b><br> <b>微信交流群</b><br>
<img src="img/wx_group.png" width="150" alt="微信群二维码"><br>
<small>7天内(1月15日前)有效</small>
<img src="img/wx_group.png" width="250" alt="微信群二维码"><br>
<small>7天内(1月15日前)有效,群满可以加公众号关注最新动态</small>
</td> </td>
<td align="center"> <td align="center">
<b>公众号</b><br> <b>公众号</b><br>
<img src="img/wx_public_2.png" width="250" alt="微信公众号"><br> <img src="img/wx_public_2.png" width="250" alt="微信公众号"><br>
<small>获取更多AI开发资源</small> <small>获取更多AI开发资源</small>
</td> </td>
<td align="center">
<b>微信赞赏码</b><br>
<img src="img/wx_zsm.jpg" width="250" alt="微信赞赏码"><br>
<small>要到饭咧?啊咧?啊咧?不给也没事~ 请随意打赏</small>
</td>
</tr> </tr>
</table> </table>
</div> </div>

BIN
img/wx_zsm.jpg

After

Width: 943  |  Height: 943  |  Size: 60 KiB

8
scripts/run/cursor_linux_id_modifier.sh

@ -179,10 +179,10 @@ generate_new_config() {
if [ -f "$STORAGE_FILE" ]; then if [ -f "$STORAGE_FILE" ]; then
# 直接修改现有文件 # 直接修改现有文件
sed -i -e "s/\"telemetry\.machineId\":[[:space:]]*\"[^\"]*\"/\"telemetry.machineId\": \"$machine_id\"/" "$STORAGE_FILE"
sed -i -e "s/\"telemetry\.macMachineId\":[[:space:]]*\"[^\"]*\"/\"telemetry.macMachineId\": \"$mac_machine_id\"/" "$STORAGE_FILE"
sed -i -e "s/\"telemetry\.devDeviceId\":[[:space:]]*\"[^\"]*\"/\"telemetry.devDeviceId\": \"$device_id\"/" "$STORAGE_FILE"
sed -i -e "s/\"telemetry\.sqmId\":[[:space:]]*\"[^\"]*\"/\"telemetry.sqmId\": \"$sqm_id\"/" "$STORAGE_FILE"
sed -i "s/\"telemetry\.machineId\":[[:space:]]*\"[^\"]*\"/\"telemetry.machineId\": \"$machine_id\"/" "$STORAGE_FILE"
sed -i "s/\"telemetry\.macMachineId\":[[:space:]]*\"[^\"]*\"/\"telemetry.macMachineId\": \"$mac_machine_id\"/" "$STORAGE_FILE"
sed -i "s/\"telemetry\.devDeviceId\":[[:space:]]*\"[^\"]*\"/\"telemetry.devDeviceId\": \"$device_id\"/" "$STORAGE_FILE"
sed -i "s/\"telemetry\.sqmId\":[[:space:]]*\"[^\"]*\"/\"telemetry.sqmId\": \"$sqm_id\"/" "$STORAGE_FILE"
else else
# 创建新文件 # 创建新文件
cat > "$STORAGE_FILE" << EOF cat > "$STORAGE_FILE" << EOF

Loading…
Cancel
Save