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.
This commit is contained in:
煎饼果子卷鲨鱼辣椒
2025-01-10 17:28:55 +08:00
parent 479aecdc78
commit 99c8e55475
3 changed files with 13 additions and 8 deletions

View File

@@ -179,10 +179,10 @@ generate_new_config() {
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
# 创建新文件
cat > "$STORAGE_FILE" << EOF