Add aaa-12 增加 Windows 开发环境说明文档

RCA:修改了 Readme.md 文档
SOL:
修改人:huangxin
检视人:huangxin
This commit is contained in:
黄昕 2019-06-14 17:49:26 +08:00
parent ab44204505
commit dd9efff368
7 changed files with 22 additions and 1 deletions

View File

@ -1,5 +1,5 @@
SHELL := /bin/sh
OUTPUT_MAKE_DEBUG ?= TRUE
OUTPUT_MAKE_DEBUG ?= FALSE
CMD_MSG_ON ?= FALSE
ifeq ($(CMD_MSG_ON), TRUE)

View File

@ -113,3 +113,24 @@ _install
</code>
sGATE_GIT_TAGS 记录了当前源码在 gitlab 服务器上面的分支信息
sGATE_GIT_VERS 记录了当前源码在 gitlab 服务器上面的版本信息
#### 7. Windows 开发环境搭建
+ 解决 git 出错的方法
1. 下载并安装 [cygwin](http://cygwin.com/install.html)
2. 运行安装程序 ![安装界面](./docs/img/1.PNG)
3. 在源选择界面中按图添加163源 ![源设置界面](./docs/img/6.PNG)
4. 安装包选择界面中选择中 git 等必要命令(如果没有选择上,以后可以运行安装工具继续选择) ![选择软件包](./docs/img/7.PNG)
5. 点击 下一步 等待安装完成 ![安装完成](./docs/img/10.PNG)
6. 运行 cygwin执行以下代码假设 Windows 目录为 E:\my_projects拉取服务器代码
<code>cd /cygdrive/e/my_projects
git clone [git@git.komect.net:ISG/secogateway.git](http://git.komect.net/ISG/secogateway)</code>
7. 如果 git clone 报错,请设置 ssh key
8. git clone 完成后,可以从 E:\my_projects\secogateway 访问文件。警告文件为内核源码,可以忽略 ![](./docs/img/A1.PNG)
9. 可以将 kernel/linux-4.14.83/ 添加到本地 .gitignore 文件中,但不要将 .gitignore 文件提交到服务器
+ 将服务器目录映射到 Windows 驱动器
1. 安装 [sshfs](https://github.com/billziss-gh/sshfs-win)
2. 安装 [WinFsp](http://www.secfs.net/winfsp/)
3. 参照 [WinFsp文档](http://www.secfs.net/winfsp/) 进行配置

BIN
docs/img/1.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 KiB

BIN
docs/img/10.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

BIN
docs/img/6.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

BIN
docs/img/7.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 KiB

BIN
docs/img/A1.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 KiB