Skip to content

Commit d21f021

Browse files
committed
Simplify structure of "compile Fa-Lang compiler"
1 parent 8c9ad25 commit d21f021

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

complie-fa-lang-compiler/index.md

+6-18
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# 编译 Fa 语言编译器
22

3-
本文将简单描述如何在 Windows / macOS(未完成) / Linux(未完成) 环境下使用 Visual Studio / JetBrains Rider(未完成) 编译 Fa 语言编译器
3+
本文将简单描述如何在 Windows / macOS / Linux 环境下使用 Visual Studio / JetBrains Rider 编译 Fa 语言编译器
44

5-
## Windows 环境
6-
7-
### 使用 Visual Studio
5+
## 使用 Visual Studio(已于 Windows 与 macOS 环境测试)
86

97
1. 准备一台安装着 Visual Studio 的电脑
108
2. 克隆 fa 编译器仓库(`git clone https://github.com/fa-org/fa.git`
@@ -14,14 +12,10 @@
1412

1513
> 接下来的步骤中,默认选择发布到的路径为默认(`bin/Release/net5.0/publish`),如果你更改了路径,到你设置的路径中寻找即可。
1614
17-
5. 前往 `fa` 路径下的 `fac/bin/Release/net5.0`
18-
6. 该路径下的 `fac` 或者 `fac.exe` 即为编译器
19-
20-
------
21-
22-
## macOS 环境
15+
1. 前往被克隆下来的文件夹中的 `fa/fac/bin/Release/net5.0` 路径
16+
2. 该路径下的可执行文件 `fac` 或者 `fac.exe` 即为编译器
2317

24-
### 使用 JetBrains Rider
18+
## 使用 JetBrains Rider(已于 macOS 环境测试)
2519

2620
1. 启动 JetBrains Rider
2721
2. 前往欢迎页面(Welcome Screen)
@@ -31,11 +25,5 @@
3125
<img src="../assets/complie-fa-lang-compiler-select-build.png" style="width: 85%"/>
3226

3327
1. 在右上角的构建选择器位置(见上图蓝框),选择 `Release | Any CPU`,然后点击左侧的 `Build Solution`(锤子图标)或者前往 `Build` 菜单,选择 `Build Solution`
34-
2. 右键左侧文件管理器中的 `fac`选择 `Reveal in Finer`,在弹出的访达窗口中,你应当可以找到 `bin` 路径,前往 `bin/Release/net5.0` 路径。
28+
2. 右键左侧文件管理器中的 `fac`选择使用在你系统的文件查看器(Windows 中的 `File Explorer`,macOS 中的 `Finder` 等)查看,在弹出的窗口中,你应当可以找到 `bin` 路径,前往 `bin/Release/net5.0`
3529
3. 该路径下的可执行文件 `fac` 即为编译器
36-
37-
## Linux 环境
38-
39-
::: warning Coming soon...
40-
这部分正在施工
41-
:::

0 commit comments

Comments
 (0)