mirror of
https://github.com/layue13/MoonBridge.git
synced 2026-10-25 18:46:18 +00:00
build: 代理发行包只保留运行所需内容
发行包根目录去掉 docs/、smoke/results/、benchmarks/results/ 和 backend/, 只剩 bin/、lib/、config/、README(-Pluckperms 时另有 plugins/)。 后端 jar 已由 release 单独放在 build/release/backend/;channel-java8 烟测改为 从 backend/build/libs 取后端 jar。文档同步。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
480999a448
commit
7664c1cf60
4 files changed
+6
-16
No files matched your search
+1
-1
@@ -61,4 +61,4 @@ dependencies {
|
||||
.\bin\moonbridge.bat --config .\config\moonbridge.yml
|
||||
```
|
||||
|
||||
Linux/macOS 使用 `bin/moonbridge`。发行包根目录还带有 README、`docs/`、`smoke/results/` 和 `benchmarks/results/`,这些随包文档和证据记录可离线阅读。指向源码、测试和脚本的链接需要另有仓库 checkout;配置模板位于发行包 `config/` 目录。
|
||||
Linux/macOS 使用 `bin/moonbridge`。发行包根目录只有运行需要的内容:`bin/` 启动脚本、`lib/` 依赖、`config/` 配置模板、README,以及带 `-Pluckperms` 构建时的 `plugins/`。文档、验收与基准记录留在仓库里;后端宿主 jar 不在代理包内,见[发行物与安装位置](release-layout.md)。
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
| 路径 | 是什么 | 装在哪里 |
|
||||
| --- | --- | --- |
|
||||
| `server/moonbridge-<版本>.zip` | 代理发行包:`bin/` 启动脚本、`lib/`、`config/` 示例配置、`docs/`;带 `-Pluckperms` 构建时 `plugins/` 里含 LuckPerms 平台插件 | 代理服务器,解压后用 JDK 25 运行 `bin/moonbridge --config config/moonbridge.yml` |
|
||||
| `server/moonbridge-<版本>.zip` | 代理发行包:`bin/` 启动脚本、`lib/`、`config/` 示例配置、README;带 `-Pluckperms` 构建时 `plugins/` 里含 LuckPerms 平台插件 | 代理服务器,解压后用 JDK 25 运行 `bin/moonbridge --config config/moonbridge.yml` |
|
||||
| `backend/moonbridge-backend-<版本>.jar` | 后端共享宿主 `MoonBridgeBackend`(Bukkit/Uranium 插件,Java 8),内含消息 API 与控制通道客户端 | 每台后端服务器的 `plugins/`;后端业务插件对它 `compileOnly` 并在 `plugin.yml` 里 `depend: [MoonBridgeBackend]` |
|
||||
| `client/moonbridgews-<版本>.jar` | 1.7.10 Forge WebSocket 客户端 mod | 玩家客户端 `mods/`,另需 UniMixins;只在使用 `ws://`/`wss://` 地址时需要 |
|
||||
|
||||
|
||||
@@ -150,6 +150,8 @@ tasks.jar {
|
||||
|
||||
distributions {
|
||||
main {
|
||||
// Only what the proxy needs to run. Docs and test records stay in the repository, and the
|
||||
// backend jar ships separately in build/release/backend (see docs/release-layout.md).
|
||||
contents {
|
||||
from(rootProject.file("README.md"))
|
||||
if (luckPerms != null) {
|
||||
@@ -157,21 +159,9 @@ distributions {
|
||||
into("plugins")
|
||||
}
|
||||
}
|
||||
from(rootProject.file("docs")) {
|
||||
into("docs")
|
||||
}
|
||||
from(rootProject.file("smoke/results")) {
|
||||
into("smoke/results")
|
||||
}
|
||||
from(rootProject.file("benchmarks/results")) {
|
||||
into("benchmarks/results")
|
||||
}
|
||||
from("src/main/resources/config") {
|
||||
into("config")
|
||||
}
|
||||
from(project(":backend").tasks.named("jar")) {
|
||||
into("backend")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,9 +7,9 @@ $repo = Split-Path -Parent $PSScriptRoot
|
||||
$fixtureClasses = Join-Path $repo 'build/channel-smoke/router'
|
||||
$probeClasses = Join-Path $repo 'build/channel-smoke/probe'
|
||||
$proxyClasspath = Join-Path $repo 'proxy-core/build/install/moonbridge/lib/*'
|
||||
$backendClasspath = Join-Path $repo 'proxy-core/build/install/moonbridge/backend/*'
|
||||
$backendClasspath = Join-Path $repo 'backend/build/libs/*'
|
||||
if (-not (Test-Path (Join-Path $repo 'proxy-core/build/install/moonbridge/lib'))) {
|
||||
throw 'Run gradlew :proxy-core:installDist first.'
|
||||
throw 'Run gradlew :proxy-core:installDist :backend:jar first.'
|
||||
}
|
||||
New-Item -ItemType Directory -Force $fixtureClasses, $probeClasses | Out-Null
|
||||
& (Join-Path $Java25Home 'bin/javac.exe') -cp $proxyClasspath -d $fixtureClasses (Join-Path $PSScriptRoot 'ChannelRouterFixture.java')
|
||||
|
||||
Reference in new issue
Block a user