File tree Expand file tree Collapse file tree 3 files changed +51
-3
lines changed Expand file tree Collapse file tree 3 files changed +51
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ English | [繁體中文](./README.zh-tw.md) | [简体中文](./README.zh-cn.md)
17
17
- [ macOS] ( #macos )
18
18
- [ Windows] ( #windows )
19
19
- [ Using install script] ( #using-install-script )
20
+ - [ Configurable Environment Variables] ( #configurable-environment-variables )
20
21
- [ Pre-compiled Binaries] ( #pre-compiled-binaries )
21
22
- [ From Source] ( #from-source )
22
23
- [ Using vscode devcontainer] ( #using-vscode-devcontainer )
@@ -97,6 +98,21 @@ chmod +x install.sh
97
98
./install.sh
98
99
```
99
100
101
+ #### Configurable Environment Variables
102
+
103
+ | Variable Name | Default Value | Description |
104
+ | ------------- | ------------------ | ---------------------------------- |
105
+ | VERSION | 0.16.1 | The CodeGPT version to install |
106
+ | INSTALL_DIR | $HOME/.codegpt/bin | Installation directory |
107
+ | CURL_INSECURE | false | Skip SSL verification (true/false) |
108
+
109
+ Example usage:
110
+
111
+ ``` sh
112
+ # Install a specific version to a custom directory
113
+ VERSION=0.15.0 INSTALL_DIR=/opt/codegpt ./install.sh
114
+ ```
115
+
100
116
The script will:
101
117
102
118
1 . Detect your OS and architecture
Original file line number Diff line number Diff line change 15
15
- [ 功能] ( #功能 )
16
16
- [ 安装] ( #安装 )
17
17
- [ 使用安装脚本] ( #使用安装脚本 )
18
+ - [ 可配置的环境变量] ( #可配置的环境变量 )
18
19
- [ 从源码安装] ( #从源码安装 )
19
20
- [ 使用 VSCode Devcontainer] ( #使用-vscode-devcontainer )
20
21
- [ 配置] ( #配置 )
@@ -75,17 +76,32 @@ choco install codegpt
75
76
### 使用安装脚本
76
77
77
78
``` sh
78
- # 下载并执行安装脚本
79
+ # 下载并运行安装脚本
79
80
bash < <( curl -sSL https://raw.githubusercontent.com/appleboy/CodeGPT/main/install.sh)
80
81
```
81
82
82
- 或手动下载后执行 :
83
+ 或手动下载并运行 :
83
84
84
85
``` sh
85
86
chmod +x install.sh
86
87
./install.sh
87
88
```
88
89
90
+ #### 可配置的环境变量
91
+
92
+ | 变量名 | 默认值 | 说明 |
93
+ | ------------- | ------------------ | ------------------------------ |
94
+ | VERSION | 0.16.1 | 要安装的 CodeGPT 版本 |
95
+ | INSTALL_DIR | $HOME/.codegpt/bin | 安装目录 |
96
+ | CURL_INSECURE | false | 是否跳过 SSL 验证 (true/false) |
97
+
98
+ 使用示例:
99
+
100
+ ``` sh
101
+ # 安装指定版本到自定义目录
102
+ VERSION=0.15.0 INSTALL_DIR=/opt/codegpt ./install.sh
103
+ ```
104
+
89
105
该脚本会:
90
106
91
107
1 . 检测您的操作系统和架构
Original file line number Diff line number Diff line change 17
17
- [ macOS] ( #macos )
18
18
- [ Windows] ( #windows )
19
19
- [ 使用安裝腳本] ( #使用安裝腳本 )
20
+ - [ 可設定的環境變數] ( #可設定的環境變數 )
20
21
- [ 預編譯二進制文件] ( #預編譯二進制文件 )
21
22
- [ 從源碼安裝] ( #從源碼安裝 )
22
23
- [ 使用 VSCode Devcontainer] ( #使用-vscode-devcontainer )
@@ -90,13 +91,28 @@ choco install codegpt
90
91
bash < <( curl -sSL https://raw.githubusercontent.com/appleboy/CodeGPT/main/install.sh)
91
92
```
92
93
93
- 或手動下載後執行 :
94
+ 或手動下載並執行 :
94
95
95
96
``` sh
96
97
chmod +x install.sh
97
98
./install.sh
98
99
```
99
100
101
+ #### 可設定的環境變數
102
+
103
+ | 變數名稱 | 預設值 | 說明 |
104
+ | ------------- | ------------------ | ------------------------------ |
105
+ | VERSION | 0.16.1 | 要安裝的 CodeGPT 版本 |
106
+ | INSTALL_DIR | $HOME/.codegpt/bin | 安裝目錄 |
107
+ | CURL_INSECURE | false | 是否跳過 SSL 驗證 (true/false) |
108
+
109
+ 使用範例:
110
+
111
+ ``` sh
112
+ # 安裝特定版本到自訂目錄
113
+ VERSION=0.15.0 INSTALL_DIR=/opt/codegpt ./install.sh
114
+ ```
115
+
100
116
此腳本會:
101
117
102
118
1 . 偵測您的作業系統與架構
You can’t perform that action at this time.
0 commit comments