Skip to content

Commit eca3768

Browse files
author
Bot
committed
Add Windows support and fix README links
- Add install.ps1 PowerShell script for Windows - Add Windows installation instructions to README - Fix raw.githubusercontent.com links (main -> master) - Add PROMOTION.md to .gitignore and remove from tracking
1 parent 96bfd2a commit eca3768

6 files changed

Lines changed: 622 additions & 125 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ Thumbs.db
2222
# Local config
2323
.env
2424
.env.local
25+
26+
# Promotion (not for public release)
27+
PROMOTION.md

PROMOTION.md

Lines changed: 0 additions & 111 deletions
This file was deleted.

README.md

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424

2525
```bash
2626
# Project-level (current project)
27-
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/main/install.sh | bash -s -- --project
27+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --project
2828

2929
# User-level (all projects)
30-
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/main/install.sh | bash -s -- --user
30+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --user
3131

3232
# Update existing installation
33-
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/main/install.sh | bash -s -- --update
33+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --update
3434
```
3535

3636
---
@@ -151,7 +151,41 @@ curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/main/
151151

152152
- [CodeBuddy IDE](https://copilot.tencent.com/ide/) installed
153153
- Git
154-
- Bash (Linux/macOS/Windows WSL)
154+
- Bash (Linux/macOS) or PowerShell (Windows)
155+
156+
---
157+
158+
## 💻 Windows Installation
159+
160+
### Option 1: PowerShell (Recommended for Windows)
161+
162+
```powershell
163+
# Download the installer
164+
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.ps1" -OutFile "install.ps1"
165+
166+
# Project-level install
167+
.\install.ps1 -Type Project
168+
169+
# User-level install (all projects)
170+
.\install.ps1 -Type User
171+
172+
# Update existing installation
173+
.\install.ps1 -Type Update
174+
```
175+
176+
### Option 2: Git Bash / WSL
177+
178+
If you have Git Bash or WSL installed, you can use the Bash installer:
179+
180+
```bash
181+
# Project-level
182+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --project
183+
184+
# User-level
185+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --user
186+
```
187+
188+
> **Note:** On Windows, CodeBuddy typically stores config at `%USERPROFILE%\.codebuddy`
155189
156190
---
157191

README_ZH.md

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424

2525
```bash
2626
# 项目级(当前项目)
27-
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/main/install.sh | bash -s -- --project
27+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --project
2828

2929
# 用户级(所有项目)
30-
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/main/install.sh | bash -s -- --user
30+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --user
3131

3232
# 更新已安装版本
33-
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/main/install.sh | bash -s -- --update
33+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --update
3434
```
3535

3636
---
@@ -151,7 +151,41 @@ curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/main/
151151

152152
- 已安装 [CodeBuddy IDE](https://copilot.tencent.com/ide/)
153153
- Git
154-
- Bash (Linux/macOS/Windows WSL)
154+
- Bash (Linux/macOS) 或 PowerShell (Windows)
155+
156+
---
157+
158+
## 💻 Windows 安装
159+
160+
### 方式 1: PowerShell(推荐)
161+
162+
```powershell
163+
# 下载安装脚本
164+
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.ps1" -OutFile "install.ps1"
165+
166+
# 项目级安装
167+
.\install.ps1 -Type Project
168+
169+
# 用户级安装(所有项目)
170+
.\install.ps1 -Type User
171+
172+
# 更新已安装版本
173+
.\install.ps1 -Type Update
174+
```
175+
176+
### 方式 2: Git Bash / WSL
177+
178+
如果你安装了 Git Bash 或 WSL,可以使用 Bash 安装脚本:
179+
180+
```bash
181+
# 项目级
182+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --project
183+
184+
# 用户级
185+
curl -sSL https://raw.githubusercontent.com/1ncludeSteven/gstack-codebuddy/master/install.sh | bash -s -- --user
186+
```
187+
188+
> **注意:** 在 Windows 上,CodeBuddy 通常将配置存储在 `%USERPROFILE%\.codebuddy`
155189
156190
---
157191

0 commit comments

Comments
 (0)