Skip to content

Commit 192d4b5

Browse files
committed
Switch install script URLs from raw.githubusercontent.com to github.com raw refs in README and update extension
1 parent fe9a29a commit 192d4b5

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,16 @@
1616

1717
Safely build from source for any VS Code-based editor (Cursor, Antigravity, VSCodium etc.):
1818

19-
> [!NOTE]
20-
> `raw.githubusercontent.com` domain is GitHub's, used for downloading repository files.
21-
2219
**macOS / Linux**
2320

2421
```bash
25-
curl -fsSL https://raw.githubusercontent.com/CodeWebChat/CWC/main/install.sh | bash
22+
curl -fsSL https://github.com/CodeWebChat/CWC/raw/refs/heads/main/install.sh | bash
2623
```
2724

2825
**Windows**
2926

3027
```powershell
31-
powershell -c "irm https://raw.githubusercontent.com/CodeWebChat/CWC/main/install.ps1 | iex"
28+
powershell -c "irm https://github.com/CodeWebChat/CWC/raw/refs/heads/main/install.ps1 | iex"
3229
```
3330

3431
## Privacy-first

‎apps/editor/src/utils/update-extension.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export const update_extension = (params: { tag_name: string }) => {
1010

1111
if (os.platform() === 'win32') {
1212
terminal.sendText(
13-
`powershell -c "& ([scriptblock]::Create((irm https://raw.githubusercontent.com/CodeWebChat/CWC/main/install.ps1))) -editor '${uri_scheme}' -lang '${lang}' -tag '${params.tag_name}'"`
13+
`powershell -c "& ([scriptblock]::Create((irm https://github.com/CodeWebChat/CWC/raw/refs/heads/main/install.ps1))) -editor '${uri_scheme}' -lang '${lang}' -tag '${params.tag_name}'"`
1414
)
1515
} else {
1616
terminal.sendText(
17-
`curl -fsSL https://raw.githubusercontent.com/CodeWebChat/CWC/main/install.sh | bash -s -- --editor "${uri_scheme}" --lang "${lang}" --tag "${params.tag_name}"`
17+
`curl -fsSL https://github.com/CodeWebChat/CWC/raw/refs/heads/main/install.sh | bash -s -- --editor "${uri_scheme}" --lang "${lang}" --tag "${params.tag_name}"`
1818
)
1919
}
2020
}

0 commit comments

Comments
 (0)