Skip to content

docs: add comprehensive installation guide and improve documentation#10

Merged
wysaid merged 2 commits intomainfrom
docs/improve-installation-guide
Feb 8, 2026
Merged

docs: add comprehensive installation guide and improve documentation#10
wysaid merged 2 commits intomainfrom
docs/improve-installation-guide

Conversation

@wysaid
Copy link
Copy Markdown
Contributor

@wysaid wysaid commented Feb 8, 2026

What

Add complete Chinese installation and usage guide (INSTALLATION.md) as the primary user documentation, with improvements to existing documentation for clarity and consistency.

Why

  • Users need a comprehensive, localized guide for integrating EGE with different IDEs
  • Previous installation approach required manual file copying; installer now handles this seamlessly
  • Documentation was scattered across different files; consolidating into one guide improves discoverability
  • Recent library structure changes (VS 2017-2026 unified, VS 2010-2015 dropped, Dev-C++ 64-bit only) needed clear documentation

How

User Documentation (INSTALLATION.md)

  • Complete installation walkthrough with IDE interface screenshot
  • Detailed per-IDE guides: Visual Studio, MinGW, Red Panda C++, Dev-C++, Code::Blocks, CLion
  • Configuration instructions and platform-specific notes
  • Simplified example code (Hello World only) with links to official tutorials for advanced examples
  • Comprehensive FAQ covering common issues and solutions
  • Manual uninstall instructions for reference

Project Documentation (README.md)

  • Added prominent link to INSTALLATION.md in Quick Start section
  • Clarified VS version support (2017-2026 only)
  • Updated language to emphasize installer benefits

Build Process (scripts/build.ps1)

  • Automatically remove unsupported libraries during packaging:
    • VS 2010-2015 (no longer supported)
    • Dev-C++ 32-bit (64-bit only support)
  • Reduces package size and prevents user confusion

Metadata Updates (.github/copilot-instructions.md)

  • Updated supported IDE list to reflect actual support

Testing

  • Documentation reviewed for accuracy against actual installer behavior and IDE requirements
  • Code examples tested and verified to produce expected output
  • IDE-specific screenshots included for visual guidance
  • All links validated for correctness

Summary by CodeRabbit

发布说明

  • 新功能

    • 新增完整中文安装指南,含分步安装、IDE 专用配置、示例与卸载说明
    • 增加 CLion 支持;将 Red Panda Dev-C++ 重命名为 Red Panda C++
  • 文档

    • 更新支持的 Visual Studio 版本范围为 2017–2026
    • 标注 Dev-C++ 仅支持 64 位,补充使用与快速上手说明
  • 移除功能

    • 停止支持 Visual Studio 2010–2015 及 32 位开发工具构建支持

- Add INSTALLATION.md with detailed Chinese installation tutorial
- Add installer interface screenshot (docs/ege-installer.png)
- Simplify code examples, redirect users to official website for more
- Link installation guide prominently in README.md
- Correct VS version support (VS 2017-2026, remove VS2010-2015 references)
- Clarify Dev-C++ 64-bit only support
- Auto-remove unsupported library files during build (VS2010-2015, Dev-C++ 32-bit)
Copilot AI review requested due to automatic review settings February 8, 2026 11:26
@wysaid wysaid added the documentation Improvements or additions to documentation label Feb 8, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 8, 2026

Walkthrough

更新项目以停止对 Visual Studio 2010–2015 和 Dev‑C++ 32 位的支持:移除相应库目录与引用,新增完整中文安装文档,更新 README 与 GitHub 指令说明,并在构建脚本中加入清理步骤以删除不再支持的库文件。

Changes

Cohort / File(s) Summary
IDE 支持与说明
\.github/copilot-instructions.md, README.md
将 Visual Studio 支持范围从 2010-2026 调整为 2017-2026、将 Red Panda Dev-C++ 名称调整并标注 Dev-C++ 仅支持 64 位;删除对 vs2010 目录的引用并更新多处文档与变更日志。
安装文档(新增)
INSTALLATION.md
新增完整中文安装指南,包含系统需求、IDE 特定使用指南(VS、MinGW-w64/MSYS2、Red Panda C++/Dev-C++/Code::Blocks/CLion)、示例、FAQ 与卸载说明(含截图与命令示例)。
构建脚本清理
scripts/build.ps1
在构建流程中新增清理步骤:删除不再支持的 VS 库目录(vs2010, vs2012, vs2013, vs2015, vc2015)及 Dev‑C++ 32 位库(devcpp\32),紧接在非 Windows 库清理之后、生成版本文件与打包之前。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

enhancement

Suggested reviewers

  • yixy-only

🐰 我在草丛里忙着搬仓,
老旧的 VS 版本悄然远航,
三二位的库也整理光,
文档铺路装机不慌张,
新安装指南带着笑和糖。

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the main changes: adding a comprehensive installation guide (INSTALLATION.md) and improving documentation across multiple files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs/improve-installation-guide

No actionable comments were generated in the recent review. 🎉


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@augmentcode
Copy link
Copy Markdown

augmentcode bot commented Feb 8, 2026

🤖 Augment PR Summary

Summary: Consolidates user-facing documentation around installing/using EGE via the installer and updates packaging/docs to reflect current supported IDE/library structure.

Changes:

  • Added INSTALLATION.md: a comprehensive Chinese install/usage guide with per-IDE walkthroughs (VS, MinGW/MSYS2, Red Panda, Dev-C++, Code::Blocks, CLion), a quick Hello World, FAQ, and uninstall instructions.
  • Updated README.md to include an installer UI screenshot and a prominent link to the installation guide; clarified support (VS 2017–2026, Dev-C++ 64-bit only).
  • Updated .github/copilot-instructions.md to align the supported IDE list and library layout notes (dropping VS2010 references).
  • Enhanced scripts/build.ps1 packaging to remove unsupported VS2010–2015 library directories and Dev-C++ 32-bit libraries from the release bundle.

Technical Notes: Documentation and packaging changes align with the recent unified MSVC library layout and aim to reduce package size and user confusion.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 4 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

INSTALLATION.md Outdated
```

2. **编写代码**
创建 `main.cpp`,内容参见上方 [Visual Studio 示例](#📝-编写代码)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These internal links use an emoji in the fragment (e.g. #📝-编写代码), but GitHub’s generated heading IDs typically strip emojis, so the link may not resolve.

Severity: low

Other Locations
  • INSTALLATION.md:294
  • INSTALLATION.md:525

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

all: $(TARGET)

$(TARGET): $(SRCS)
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the Makefile example, the recipe lines appear to be indented with spaces; make requires a leading tab for recipe commands, otherwise users will hit a “missing separator”/parse error.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)

clean:
del $(TARGET)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clean target uses del, which only works in cmd.exe; if users follow the MSYS2/MinGW shell flow described above, make clean will fail.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

del $(TARGET)

run: $(TARGET)
$(TARGET)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The run target executes $(TARGET) directly; in typical MSYS2/Unix-like shells the current directory isn’t on PATH, so this often won’t run unless invoked with an explicit path (which differs from the earlier ./main.exe example).

Severity: low

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

🤖 Fix all issues with AI agents
In @.github/copilot-instructions.md:
- Line 9: In the "Supported IDEs" line replace the inconsistent string "Red
Panda Dev-C++" with the canonical "Red Panda C++" so it matches other files;
locate the literal "Red Panda Dev-C++" in the Supported IDEs list and update it
to "Red Panda C++".
- Line 9: The supported IDEs list in the .github/copilot-instructions.md
currently omits CLion; update the line that starts with "**Supported IDEs**:
Visual Studio 2017-2026, MinGW-w64/MSYS2, Dev-C++, Code::Blocks, Red Panda
Dev-C++" to include "CLion" (matching README.md and INSTALLATION.md) so the
supported IDEs list is consistent across documentation.

In `@INSTALLATION.md`:
- Around line 285-287: Add a language identifier to the fenced code blocks in
INSTALLATION.md that currently show linker/library flags and other snippets
(e.g., the block containing "-lgraphics -lgdiplus -lgdi32 -limm32 -lmsimg32
-lole32 -loleaut32 -lwinmm -luuid -mwindows -static" and the blocks in the
ranges around lines 343-345, 416-427, 430-433) by changing the opening triple
backticks to include an appropriate language label such as text or bash (for
example use ```text or ```bash) so each code fence is explicitly labeled for
proper syntax highlighting; update all occurrences mentioned in the comment
accordingly.
- Line 183: 修复 README 链接失效:在 INSTALLATION.md 中将包含 emoji 的链接锚点(例如
`#📝-编写代码`、`#🔧-配置编译器` 以及另两处类似的 `#…` 链接)改为去掉 emoji 的锚点(例如
`#编写代码`、`#配置编译器`),确保链接文本或目标匹配 GitHub 生成的标题锚点;或者替换为显式 HTML 锚点/链接(如在标题处添加 <a
id="编写代码"></a> 并将链接指向 `#编写代码`)以保证跳转正确。
- Line 98: The heading "Visual Studio 2017 及更早版本" is misleading; update that
heading text (replace the "Visual Studio 2017 及更早版本" line) to explicitly
indicate this section covers the Visual Studio 2017 legacy/old UI and that VS
2015 and earlier are not supported (for example: "Visual Studio 2017(旧版界面,不支持 VS
2015 及更早版本)"), and ensure any nearby text mentions the installer does not
support VS2015 or earlier.
- Around line 485-492: The ordered list in the CLion setup section resets
numbering instead of continuing, breaking step flow; update the subsequent list
items (the second "1." entries shown in the diff) to continue the sequence
(change them to "3." and "4." or use explicit sequential numbering for the whole
block) so the Markdown renders a continuous 1–4 step sequence; locate the list
lines around the CLion steps (the "创建新项目" block and the following "配置
CMakeLists.txt" block) and adjust their numeric prefixes accordingly.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a consolidated Chinese installation/usage guide as the primary user-facing documentation, updates existing docs to reflect current IDE/library support, and adjusts the packaging script to exclude unsupported library variants.

Changes:

  • Added INSTALLATION.md with step-by-step installation and per-IDE configuration guidance (plus screenshots and FAQ).
  • Updated README.md to link prominently to the new guide and clarify supported Visual Studio/Dev-C++ variants.
  • Updated scripts/build.ps1 to remove unsupported VS2010–2015 and Dev-C++ 32-bit libraries during packaging.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 6 comments.

File Description
scripts/build.ps1 Prunes unsupported library directories from the packaged xege_libs payload.
README.md Improves Quick Start visibility of the new guide and updates support matrix/details.
INSTALLATION.md New comprehensive Chinese installation and usage guide with IDE-specific sections.
.github/copilot-instructions.md Updates repo metadata to reflect current supported IDE versions and library layout.

INSTALLATION.md Outdated
```

2. **编写代码**
创建 `main.cpp`,内容参见上方 [Visual Studio 示例](#📝-编写代码)
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link target #📝-编写代码 is unlikely to match GitHub’s generated heading anchors (emoji are typically stripped), so this intra-doc link may be broken. Consider linking to a stable anchor (e.g., add an explicit HTML anchor) or link to the “快速入门示例” section instead.

Suggested change
创建 `main.cpp`,内容参见上方 [Visual Studio 示例](#📝-编写代码)
创建 `main.cpp`,内容参见上方 [快速入门示例](#快速入门示例)

Copilot uses AI. Check for mistakes.
Comment on lines +207 to +213
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)

clean:
del $(TARGET)

run: $(TARGET)
$(TARGET)
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Makefile example’s recipe lines appear to start with spaces. In Makefiles, commands must start with a literal TAB, otherwise make will fail with “missing separator”. Update the snippet to use tabs (and consider a shell-portable clean command if you expect MSYS2 bash users).

Suggested change
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
clean:
del $(TARGET)
run: $(TARGET)
$(TARGET)
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
clean:
rm -f $(TARGET)
run: $(TARGET)
$(TARGET)

Copilot uses AI. Check for mistakes.
INSTALLATION.md Outdated
Comment on lines +485 to +493
1. **创建新项目**
- **File → New Project**
- 选择 **C++ Executable**
- 输入项目名称

![CLion 新建项目](assets/docs/images/clion_plugin_new_proj.png)

1. **配置 CMakeLists.txt**

Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The numbered list restarts at 1 multiple times (e.g., after toolchain setup). This renders confusing step ordering. Renumber the steps so they progress sequentially (1,2,3,4…).

Copilot uses AI. Check for mistakes.
Comment on lines +210 to +217
# 移除不再支持的 VS2010-2015 库文件
$UnsupportedVSLibs = @("vs2010", "vs2012", "vs2013", "vs2015", "vc2015")
foreach ($libDir in $UnsupportedVSLibs) {
$pathToRemove = Join-Path (Join-Path $LibsDir "lib") $libDir
if (Test-Path $pathToRemove) {
Log " Removing unsupported VS library: $libDir"
Remove-Item -Recurse -Force $pathToRemove
}
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove-Item emits non-terminating errors by default, so a failed deletion here can leave unsupported VS libs in the package while the build still “succeeds”. Consider adding -ErrorAction Stop (and/or a post-delete Test-Path check) so packaging fails fast if the directory can’t be removed.

Copilot uses AI. Check for mistakes.
Comment on lines +220 to +225
# 移除 Dev-C++ 32位库文件(仅支持 64 位编译)
$devCpp32Path = Join-Path (Join-Path $LibsDir "lib") "devcpp\32"
if (Test-Path $devCpp32Path) {
Log " Removing Dev-C++ 32-bit library (unsupported)"
Remove-Item -Recurse -Force $devCpp32Path
}
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: if removing the Dev-C++ 32-bit directory fails, the build may still succeed and ship unsupported artifacts. Add -ErrorAction Stop (and/or verify the directory is gone) to make failures visible.

Copilot uses AI. Check for mistakes.
INSTALLATION.md Outdated
Comment on lines +98 to +102
**Visual Studio 2017 及更早版本:**

1. **文件 → 新建 → 项目...**
2. 选择 **Visual C++ → Win32 → Win32 控制台应用程序**
3. 在向导中选择 **"空项目"**
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This heading says “Visual Studio 2017 及更早版本”, but earlier in the same section the doc explicitly states VS2015 and earlier are not supported. Reword this to only refer to VS2017 (older UI) to avoid implying VS2015/2013/etc are supported.

Copilot uses AI. Check for mistakes.
- Fix IDE naming inconsistency: 'Red Panda Dev-C++'  'Red Panda C++'
- Add missing CLion to supported IDE list in copilot-instructions.md
- Clarify VS2017 heading: explicitly state VS2015 and earlier not supported
- Fix broken emoji anchor links in INSTALLATION.md (#-编写代码  #编写代码)
- Add language identifiers to code fences (text for linker params/flags)
- Fix CLion section: correct ordered list numbering (1,2,1,1,2  1-5) and image indentation
@wysaid wysaid merged commit 5f01a0d into main Feb 8, 2026
2 checks passed
@wysaid wysaid deleted the docs/improve-installation-guide branch February 8, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants