mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
docs: update README
This commit is contained in:
@@ -259,23 +259,23 @@ Files.write(Paths.get("agent.jar"), agentJarBytes);
|
|||||||
首先需要下载 [bun](https://bun.sh/),这是一款用于构建前端服务的工具。
|
首先需要下载 [bun](https://bun.sh/),这是一款用于构建前端服务的工具。
|
||||||
|
|
||||||
1. 使用 Git Clone 项目
|
1. 使用 Git Clone 项目
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/ReaJason/MemShellParty.git
|
git clone https://github.com/ReaJason/MemShellParty.git
|
||||||
```
|
```
|
||||||
2. 构建前端项目,build 结束会将静态资源自动移动到 Spring Boot 中以供使用
|
2. 构建前端项目,build 结束会将静态资源自动移动到 Spring Boot 中以供使用
|
||||||
```bash
|
```bash
|
||||||
cd MemShellParty/web
|
cd MemShellParty/web
|
||||||
|
|
||||||
bun install
|
bun install
|
||||||
|
|
||||||
bun run build
|
bun run build
|
||||||
```
|
```
|
||||||
3. 构建后端项目,确保使用 JDK17 环境
|
3. 构建后端项目,确保使用 JDK17 环境
|
||||||
```bash
|
```bash
|
||||||
cd MemShellParty/boot
|
cd MemShellParty/boot
|
||||||
|
|
||||||
./gradlew :boot:bootjar -x test
|
./gradlew :boot:bootjar -x test
|
||||||
```
|
```
|
||||||
|
|
||||||
构建完之后,可直接启动 jar 包,jar 包位于 `MemShellParty/boot/build/libs/boot-1.0.0.jar`
|
构建完之后,可直接启动 jar 包,jar 包位于 `MemShellParty/boot/build/libs/boot-1.0.0.jar`
|
||||||
|
|
||||||
|
|||||||
+12
-12
@@ -257,23 +257,23 @@ Compatible with Java6 ~ Java8, Java9, Java11, Java17, Java21
|
|||||||
First, you need to download and install [bun](https://bun.sh/), a tool for building the frontend service.
|
First, you need to download and install [bun](https://bun.sh/), a tool for building the frontend service.
|
||||||
|
|
||||||
1. Clone the project using Git:
|
1. Clone the project using Git:
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/ReaJason/MemShellParty.git
|
git clone https://github.com/ReaJason/MemShellParty.git
|
||||||
```
|
```
|
||||||
2. Build the frontend project. After the build finishes, static resources will be automatically moved to the Spring Boot module.
|
2. Build the frontend project. After the build finishes, static resources will be automatically moved to the Spring Boot module.
|
||||||
```bash
|
```bash
|
||||||
cd MemShellParty/web
|
cd MemShellParty/web
|
||||||
|
|
||||||
bun install
|
bun install
|
||||||
|
|
||||||
bun run build
|
bun run build
|
||||||
```
|
```
|
||||||
3. Build the backend project. Ensure you are using a JDK 17 environment.
|
3. Build the backend project. Ensure you are using a JDK 17 environment.
|
||||||
```bash
|
```bash
|
||||||
cd MemShellParty/boot
|
cd MemShellParty/boot
|
||||||
|
|
||||||
./gradlew :boot:bootjar -x test
|
./gradlew :boot:bootjar -x test
|
||||||
```
|
```
|
||||||
|
|
||||||
After building, you can directly run the JAR file located at `MemShellParty/boot/build/libs/boot-*.jar` (the exact version might vary).
|
After building, you can directly run the JAR file located at `MemShellParty/boot/build/libs/boot-*.jar` (the exact version might vary).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user