diff --git a/apps/desktop/scripts/smoke-window.mjs b/apps/desktop/scripts/smoke-window.mjs index 1cb6e35b0..efe39aab3 100644 --- a/apps/desktop/scripts/smoke-window.mjs +++ b/apps/desktop/scripts/smoke-window.mjs @@ -1,5 +1,5 @@ import { guardLargeVideoDataUrl, largeVideoState, verifyLargeVideoBytes } from './large-video.mjs'; -import { app, BrowserWindow } from 'electron'; +import { app, BrowserWindow, clipboard } from 'electron'; import { appendFileSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'; import { createHash } from 'node:crypto'; import { join } from 'node:path'; @@ -82,6 +82,14 @@ export async function smokeWindow({ window, host, getLocale }) { window.focus(); window.webContents.focus(); await waitFor(() => window.isFocused(), 'Desktop window could not take focus before search'); + // Chromium asks the embedder for a clipboard permission before an + // asynchronous write, and the name depends on the activation: a click asks for + // clipboard-sanitized-write, and a write without one asks for the read/write + // pair the application never needs. Both paths are checked, so a policy that + // grants the read/write name to satisfy a scripted write cannot pass either. + await waitFor(() => window.webContents.executeJavaScript('document.hasFocus()'), 'Renderer did not take document focus before the clipboard check'); + await assertClipboardDenied(window); + await assertClipboardWrite(window, 'opendirector-smoke-click', true); await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-search-toggle').click()"); await waitFor(() => window.webContents.executeJavaScript("document.activeElement === document.querySelector('.od-sidebar-search')"), 'Project search did not take focus'); const firstProject = await window.webContents.executeJavaScript("document.querySelector('.od-project-sidebar nav button span').textContent"); @@ -248,6 +256,7 @@ export async function smokeWindow({ window, host, getLocale }) { await window.webContents.executeJavaScript("document.querySelector('.od-caption-actions button').click()"); } await waitFor(() => window.webContents.executeJavaScript(`localStorage.getItem('opendirector.desktop.sidebar.v1') === '${result.sidebarFinallyOpen ? 'open' : 'closed'}'`), 'Sidebar preference was not saved'); + await assertFullscreen(window); await window.webContents.executeJavaScript('window.opendirectorDesktop.setExporting(true)'); await delay(50); window.close(); @@ -255,6 +264,64 @@ export async function smokeWindow({ window, host, getLocale }) { return result; } +// A write without user activation asks Chromium for the read/write clipboard +// pair, the name that also opens `navigator.clipboard.readText`. Every copy in +// the shared UI starts from a click, so the shell denies this path, and the +// denial is part of the contract: it must neither reach the system clipboard nor +// stay pending. +async function assertClipboardDenied(window) { + const before = await clipboard.readText(); + const outcome = await window.webContents.executeJavaScript( + `navigator.clipboard.writeText('opendirector-smoke-denied').then(() => 'granted', error => error.name)`, false); + if (outcome !== 'NotAllowedError') throw new Error(`A clipboard write without user activation was not denied: ${outcome}`); + const after = await clipboard.readText(); + if (after !== before) throw new Error(`A denied clipboard write changed the system clipboard: ${JSON.stringify(before)} became ${JSON.stringify(after)}`); + const read = await window.webContents.executeJavaScript( + `navigator.clipboard.readText().then(() => 'granted', error => error.name)`, false); + if (read !== 'NotAllowedError') throw new Error(`A clipboard read was not denied: ${read}`); +} + +async function assertClipboardWrite(window, text, userGesture) { + const previous = await clipboard.readText(); + try { + await window.webContents.executeJavaScript( + `navigator.clipboard.writeText(${JSON.stringify(text)}).then(() => true, error => { throw new Error('Clipboard write was rejected: ' + error.name); })`, userGesture); + // The renderer promise settles before the system clipboard holds the value: + // an immediate read still returns the previous contents, measured for the + // scripted write in the packaged application and intermittently for a click. + let actual = await clipboard.readText(); + for (let attempt = 0; attempt < 20 && actual !== text; attempt++) { + await delay(100); + actual = await clipboard.readText(); + } + if (actual !== text) throw new Error(`Clipboard write did not reach the system clipboard: expected ${text}, read ${JSON.stringify(actual)}`); + } finally { + // Give back the text this run found so a developer smoke does not replace the + // clipboard of the session that launched it. Non-text formats are not kept. + clipboard.writeText(previous); + } +} + +// A denial here is invisible to the renderer: `requestFullscreen`'s promise stays +// pending, so the player's button looks dead instead of reporting a refusal. +// Assert the entry, the exit, and that a refusal surfaces at all. +async function assertFullscreen(window) { + const state = await window.webContents.executeJavaScript(`(async () => { + const element = document.querySelector('.cw-workspace') ?? document.body; + const outcome = await Promise.race([ + element.requestFullscreen().then(() => 'entered', error => error.name), + new Promise(resolve => setTimeout(() => resolve('pending'), 10000)), + ]); + if (outcome !== 'entered') return { outcome }; + const entered = document.fullscreenElement === element; + document.exitFullscreen().catch(() => {}); + return { outcome, entered }; + })()`, true); + if (state.outcome !== 'entered') throw new Error(`Fullscreen request did not enter fullscreen: ${state.outcome}`); + if (!state.entered) throw new Error('Fullscreen request did not make the element fullscreen'); + await waitFor(() => window.webContents.executeJavaScript('!document.fullscreenElement'), 'Fullscreen did not exit'); +} + async function smokeLargeVideo(window, host, projectId, fixture, firstLaunch) { const { webContents } = window; const name = 'large-video.mp4'; diff --git a/apps/desktop/src/main.mjs b/apps/desktop/src/main.mjs index c1ba6060c..ad354e17c 100644 --- a/apps/desktop/src/main.mjs +++ b/apps/desktop/src/main.mjs @@ -7,6 +7,7 @@ import { homedir } from 'node:os'; import { Host, ownedURL, proxyRequest } from './host.mjs'; import { messages, localeFor } from './locale.mjs'; import { registerCommand, commandPath } from './command.mjs'; +import { permissionGranted } from './permissions.mjs'; app.setName('OpenDirector'); const desktopChrome = ['darwin', 'win32'].includes(process.platform); @@ -133,7 +134,10 @@ async function start() { }); await host.ready; const ownedSession = session.fromPartition('persist:opendirector'); - ownedSession.setPermissionRequestHandler((_contents, _permission, callback) => callback(false)); + ownedSession.setPermissionRequestHandler((contents, permission, callback, details) => + callback(permissionGranted(permission, details.requestingUrl ?? contents.getURL()))); + ownedSession.setPermissionCheckHandler((_contents, permission, requestingOrigin) => + permissionGranted(permission, requestingOrigin)); let projectSubscription; ownedSession.protocol.handle('opendirector', request => proxyRequest(request, host, async (url, options) => { const pathname = new URL(url).pathname; diff --git a/apps/desktop/src/permissions.mjs b/apps/desktop/src/permissions.mjs new file mode 100644 index 000000000..6942fb179 --- /dev/null +++ b/apps/desktop/src/permissions.mjs @@ -0,0 +1,36 @@ +import { ownedURL } from './host.mjs'; + +/** + * Renderer permissions granted by the desktop shell, for its own page only. + * + * Electron grants renderer permissions by default, so denying by default means + * the handler also has to grant the ones the shared UI actually uses. Each name + * below belongs to a call the renderer makes; a permission without a caller is + * a capability, not a fix. Electron can pass an empty or opaque requesting URL, + * so an untrusted origin is a denial rather than a thrown error. + */ +const granted = new Set([ + // `navigator.clipboard.writeText` from a click: Chromium asks for + // clipboard-sanitized-write only when the write is sanitized and a click is + // the activation, and for the read/write pair otherwise. The renderer copies + // from click handlers only, so the read/write name stays denied: it also + // grants `navigator.clipboard.readText`, and this application never reads the + // system clipboard. Granting it would be a policy change for a future + // activation-free copy, not a repair for a broken copy button. + 'clipboard-sanitized-write', + // `mediaElement.requestFullscreen`: the check handler answers + // automatic-fullscreen and the request handler answers fullscreen. Denying + // either leaves the fullscreen request promise unsettled, so the player's + // fullscreen button silently does nothing instead of reporting a refusal. + 'fullscreen', + 'automatic-fullscreen', +]); + +export function permissionGranted(permission, requestingUrl) { + if (!granted.has(permission)) return false; + try { + return ownedURL(requestingUrl); + } catch { + return false; + } +} diff --git a/apps/desktop/tests/permissions.test.mjs b/apps/desktop/tests/permissions.test.mjs new file mode 100644 index 000000000..fd8067311 --- /dev/null +++ b/apps/desktop/tests/permissions.test.mjs @@ -0,0 +1,43 @@ +import { test } from 'node:test'; +import assert from 'node:assert/strict'; +import { permissionGranted } from '../src/permissions.mjs'; + +const app = 'opendirector://app/'; +const allowed = ['clipboard-sanitized-write', 'fullscreen', 'automatic-fullscreen']; + +test('The application page receives the permissions its controls use', () => { + for (const permission of allowed) { + assert.equal(permissionGranted(permission, app), true, permission); + assert.equal(permissionGranted(permission, 'opendirector://app/canvas?x=1'), true, permission); + // The check handler answers a serialized origin, which carries no path. + assert.equal(permissionGranted(permission, 'opendirector://app'), true, permission); + } +}); + +test('A clipboard write without user activation stays denied', () => { + // Chromium reports the read/write clipboard permission as clipboard-read, so + // granting it to satisfy a scripted write would also grant + // `navigator.clipboard.readText`. Every copy in the shared UI starts from a + // click and asks for clipboard-sanitized-write instead, so the shell keeps this + // name denied and the installed smoke asserts the denial. + assert.equal(permissionGranted('clipboard-read', app), false); + assert.equal(permissionGranted('clipboard-read', 'opendirector://app/canvas'), false); + assert.equal(permissionGranted('clipboard-sanitized-write', app), true); +}); + +test('Other renderer permissions stay denied', () => { + for (const permission of ['media', 'display-capture', 'geolocation', 'notifications', + 'midi', 'pointerLock', 'openExternal', 'fileSystem', 'serial', 'usb', 'unknown', '']) { + assert.equal(permissionGranted(permission, app), false, permission); + } +}); + +test('The granted permissions do not extend to other origins', () => { + for (const origin of ['https://example.com/', 'file:///C:/tmp/a.html', 'opendirector://other/', + 'opendirector://app:8080/', 'opendirector://app@evil.com/', 'opendirector://x.app/', + '', undefined, null, 'null', 'not a url']) { + for (const permission of allowed) { + assert.equal(permissionGranted(permission, origin), false, `${permission} on ${String(origin)}`); + } + } +}); diff --git a/docs/architecture/desktop.md b/docs/architecture/desktop.md index 158c81d66..5119c5818 100644 --- a/docs/architecture/desktop.md +++ b/docs/architecture/desktop.md @@ -18,6 +18,8 @@ The main process starts the bundled Python runtime and gives the Host a fresh cr The renderer requests application pages, media, and API resources through `opendirector://app`. The main process forwards those requests to the Host with the launch credential. The Host checks the credential before it serves the request. The renderer runs with Node integration off and context isolation on. A preload bridge exposes specific desktop operations, including edit-session registration and language and export status updates. +Renderer permissions are denied by default with an explicit allow list in [`permissions.mjs`](../../apps/desktop/src/permissions.mjs), limited to `opendirector://app`: `clipboard-sanitized-write`, the name a click-activated `navigator.clipboard.writeText` requests, and the two fullscreen names `requestFullscreen` uses. The read/write clipboard name stays denied because every copy in the shared UI starts from a click and the renderer never reads the system clipboard, so granting it would hand the page a capability no caller uses. The fullscreen names are granted because a denial leaves the request promise unsettled and the player's button silently does nothing. The installed smoke test asserts that a click-activated copy reaches the system clipboard, that a write without user activation is refused and leaves the clipboard untouched, and that a fullscreen request enters and exits. Granting a new renderer permission is a policy change, not a UI detail. + ## The Host owns project state The Host uses the same project storage, command validation, and edit-session rules as the standalone API. The desktop shell handles window behavior and opens native dialogs for file input and downloads. diff --git a/docs/architecture/desktop.zh-CN.md b/docs/architecture/desktop.zh-CN.md index 8caf00124..4b6089165 100644 --- a/docs/architecture/desktop.zh-CN.md +++ b/docs/architecture/desktop.zh-CN.md @@ -18,6 +18,8 @@ flowchart LR 渲染进程通过 `opendirector://app` 请求应用页面、媒体和 API 资源。主进程转发请求时附带启动凭证,Host 验证凭证后处理请求。渲染进程关闭 Node 集成并开启上下文隔离。预加载脚本提供有限的桌面接口,包括登记编辑会话、同步语言和导出状态。 +渲染进程权限默认全部拒绝,只对 `opendirector://app` 开放一份显式清单(见 [`permissions.mjs`](../../apps/desktop/src/permissions.mjs)):点击激活的 `navigator.clipboard.writeText` 申请的 `clipboard-sanitized-write`,以及 `requestFullscreen` 使用的两种全屏权限。读写剪贴板名称不授予:界面里的复制都由点击发起,渲染进程也从不读取系统剪贴板,授予它等于给页面一项没有调用方的能力。全屏若不授予,申请 Promise 会一直挂起,播放器的全屏按钮会静默失效。已安装包的冒烟检查会断言点击激活的复制确实写入系统剪贴板、无用户激活的写入被拒绝且不改变剪贴板内容,并断言全屏能够进入也能够退出。新增任何渲染进程权限都属于策略变更,不是界面细节。 + ## Host 管理工程状态 Host 与独立 API 共用工程存储、命令校验和编辑会话规则。桌面壳管理窗口,并通过原生对话框选择文件和保存下载。 diff --git a/docs/development/desktop.md b/docs/development/desktop.md index 263597304..7dd2d1321 100644 --- a/docs/development/desktop.md +++ b/docs/development/desktop.md @@ -18,7 +18,9 @@ node apps/desktop/scripts/smoke.mjs /absolute/path/to/packaged/OpenDirector The runtime preparation builds the Python wheel using the existing build backend, including Web assets, skills and the actual OpenCode executable. It installs the wheel and dependencies into a private standalone Python distribution, validates CLI help and both media binaries, and records the target in `runtime/manifest.json`. It never modifies system Python. Supply media binaries with their redistribution licenses for the target; system package-manager binaries with external shared-library dependencies are not portable. -The smoke check launches the actual packaged executable with isolated temporary data, opens the canvas, drops local MP4, PNG, and WAV files and verifies their assets and nodes persist across launches, checks authenticated health and project queries, verifies renderer isolation and both locales, hides the window without stopping the Host, and reopens the same project after quitting. It makes no provider calls. It does not establish Agent-assisted creation, export quality, signing, or support on an untested platform. +The smoke check launches the actual packaged executable with isolated temporary data, opens the canvas, drops local MP4, PNG, and WAV files and verifies their assets and nodes persist across launches, checks authenticated health and project queries, verifies renderer isolation and both locales, asserts that a click-activated renderer copy reaches the system clipboard and that a write without user activation is refused, enters and exits fullscreen, hides the window without stopping the Host, and reopens the same project after quitting. It makes no provider calls. It does not establish Agent-assisted creation, export quality, signing, or support on an untested platform. + +Copy actions in the shared UI use `navigator.clipboard.writeText`, and the media player uses `requestFullscreen`; both are renderer permissions. The shell therefore grants the names those calls request and denies every other renderer permission ([`permissions.mjs`](../../apps/desktop/src/permissions.mjs)). Measure the permission names in the shipped Electron build instead of inferring them from Chromium, and measure each activation path: in Electron 45 a scripted clipboard write asks for `clipboard-read`, the read/write name that also opens `navigator.clipboard.readText`, while the same write from a click asks for `clipboard-sanitized-write`; the shell grants only the click-activated name, and the smoke asserts that the scripted path is refused with `NotAllowedError` and leaves the clipboard unchanged. Fullscreen follows the same rule from the deny side: denying `automatic-fullscreen` or `fullscreen` leaves the request promise unsettled, so the button does nothing instead of reporting a refusal. The smoke therefore asserts that a fullscreen request settles, enters and exits. A browser page cannot stand in for these checks either, because Chrome grants the write itself, so only the packaged smoke run covers the shell policy. The permission name a write requests comes from Chromium's shared permission code and does not vary by platform; the packaged run on each platform establishes that its system clipboard and window server behave. ## Terminal command diff --git a/docs/development/desktop.zh-CN.md b/docs/development/desktop.zh-CN.md index e4efab4ac..738c5398f 100644 --- a/docs/development/desktop.zh-CN.md +++ b/docs/development/desktop.zh-CN.md @@ -18,7 +18,9 @@ node apps/desktop/scripts/smoke.mjs /absolute/path/to/packaged/OpenDirector 运行时准备复用现有构建后端生成 Python wheel,包含前端、技能和实际 OpenCode 可执行文件;将 wheel 和依赖安装到私有独立 Python,验证 CLI 帮助及两个媒体程序,并将平台写入 `runtime/manifest.json`。不会修改系统 Python。提供对应平台可分发的媒体程序及许可证;依赖包管理器外部动态库的系统二进制不能直接作为便携运行时。 -冒烟检查使用临时数据目录启动实际打包程序,进入画布,拖入本地 MP4、PNG 和 WAV 文件并确认重启后素材和节点仍在,检查鉴权健康接口和工程查询,验证渲染隔离及中英文切换,隐藏窗口并确认 Host 保留,退出后重开同一工程,不调用模型服务。该检查不代表已完成 Agent 辅助创作、导出质量、签名或未测试平台的验收。 +冒烟检查使用临时数据目录启动实际打包程序,进入画布,拖入本地 MP4、PNG 和 WAV 文件并确认重启后素材和节点仍在,检查鉴权健康接口和工程查询,验证渲染隔离及中英文切换,断言点击激活的复制确实写入系统剪贴板、无用户激活的写入被拒绝,进入并退出全屏,隐藏窗口并确认 Host 保留,退出后重开同一工程,不调用模型服务。该检查不代表已完成 Agent 辅助创作、导出质量、签名或未测试平台的验收。 + +界面中的复制操作使用 `navigator.clipboard.writeText`,媒体播放器使用 `requestFullscreen`,两者都受渲染进程权限约束。桌面壳因此只授予这些调用实际申请的名称,其余渲染进程权限继续默认拒绝(见 [`permissions.mjs`](../../apps/desktop/src/permissions.mjs))。权限名称要在实际 Electron 构建里实测,不能从 Chromium 源码推导,并且要按用户激活方式分别实测:Electron 45 里脚本调用的写入申请 `clipboard-read`,也就是同时能打开 `navigator.clipboard.readText` 的读写名称,而同一段写入由点击触发时申请 `clipboard-sanitized-write`;桌面壳只授予点击路径的名称,冒烟断言脚本路径以 `NotAllowedError` 被拒且剪贴板内容不变。全屏是同一类问题的反面:拒绝 `automatic-fullscreen` 或 `fullscreen` 会让申请 Promise 一直不落地,按钮看起来毫无反应而不是报错,因此冒烟也断言全屏申请能落地、能进入、能退出。普通浏览器页面同样不能替代这些检查,因为 Chrome 自己会授予写入权限,只有实际安装包的冒烟运行能覆盖桌面壳的权限策略。写入申请的权限名称来自 Chromium 共用的权限代码,不随平台变化;各平台要各自跑一次安装包冒烟,才能确认该平台的系统剪贴板和窗口服务行为一致。 ## 终端命令 diff --git a/docs/development/lessons.md b/docs/development/lessons.md index 02d65b52f..619b82bcc 100644 --- a/docs/development/lessons.md +++ b/docs/development/lessons.md @@ -67,6 +67,16 @@ When work exposes a consequential risk or a recurring problem, add a lesson or u - **Final-window follow-up:** Native PR #193 regressions also broke the guard after the final pre-write check returned and after the final post-write check returned. A check is not an atomic write/cleanup guarantee. Retain the one-time native removal receipt, verify its ACE multiplicities under a fresh guard after a conflict, and report unconfirmed cleanup rather than spending the delta again. At release, distinguish a real oplock-break completion from the host's own cancellation and preserve an existing body error. This contract cannot prevent a principal with independent WRITE_DAC from changing permissions after the guard has been released; do not claim permanent ACL immutability. - **Installation ownership follow-up:** A deterministic PR #193 probe also replayed the pre-install descriptor plus an external identical deny. Retaining both successful installation receipts across the retry let cleanup remove the external rule. ACE counts cannot establish provenance: an equal-count replacement is also possible. If the installation's guard cannot finish successfully after a native acknowledgment, stop initialization and report unconfirmed ownership without retrying or removing that handle's uncertain ACEs. A setter wrapper error with a successfully checked and released guard remains an ordinary rollback case. Cover pre-write retry, both replay shapes, additive writers, partial preparation, setter errors and release failures; distinguish portable control flow from actual Windows scheduling. +## A deny-all renderer permission handler also denies clipboard writes + +- **Trigger:** Adding a renderer permission policy to an Electron shell, or a copy button that fails only in the packaged app. +- **Lesson:** [PR #397](https://github.com/ThinkFlowLab/OpenDirector/pull/397) installed `setPermissionRequestHandler(() => callback(false))`. Electron grants renderer permissions by default and only denies through that handler, so every `navigator.clipboard.writeText` copy in the shared UI rejected with `NotAllowedError: Write permission denied.` in the packaged application while the same page worked in a browser that grants the write itself. +- **Check:** State renderer permissions as an explicit allow list limited to the shell's own origin, and cover each activation path in the installed smoke run: write from the renderer with and without user activation and compare the system clipboard from the main process. Measured Electron 45 on Windows, `navigator.clipboard.writeText` asks for different names per path: a scripted write requests `clipboard-read`, while the same write from a click requests `clipboard-sanitized-write`. An allow list with only `clipboard-read` therefore passed the scripted smoke write while every copy button a user pressed still failed, and `document.execCommand('copy')` also returned false, so a scripted fallback cannot repair a denied write. Measure the requested name for each activation in the shipped build; do not infer it from Chromium source, and do not let a permission-free scripted call stand in for a click. +- **Permission follow-up:** Chromium reports a scripted write as `clipboard-read`, the same permission that opens `navigator.clipboard.readText`, so granting it to keep a scripted assertion passing hands the page the ability to read the system clipboard. Name the capability, not the call: grant the name the click-activated copy requests, and assert in the installed run that the activation-free write is refused and leaves the clipboard unchanged. A test that grants whatever the smoke needs makes the smoke drive the policy instead of checking it. +- **Origin follow-up:** The permission request handler receives no `securityOrigin` in Electron 45; scope by `details.requestingUrl` and by the check handler's origin, and treat a non-app origin as a denial instead of letting `new URL` throw. `requestingUrl` is always a string, so a fallback for a missing value never runs; the value that needs handling is the empty or unparsable one, and falling back to the page URL there would promote an untrusted frame's request to the shell's own grant. +- **Fullscreen follow-up:** A denial the renderer never sees is the harder failure: denying `fullscreen` or `automatic-fullscreen` leaves `requestFullscreen`'s promise unsettled, so the button does nothing and no `.catch` runs. Assert the settled request, the entry, and the exit; a permission granted only on paper is indistinguishable from a denied one until the promise is waited on with a timeout. +- **Clipboard read-back follow-up:** `clipboard.readText()` is asynchronous in Electron 45, so a smoke assertion that compares its return value directly always fails; await it, and poll instead of reading once — the renderer promise settles before the system clipboard holds the value, so an immediate read still returns the previous contents (measured intermittently for a click-activated write). Save and restore the value the run found, or the smoke replaces the clipboard of whatever session launched it. + ## A process exit and ownership of its descendants are separate facts - **Trigger:** Adapting browser fixture cleanup or sampled process memory to Windows. diff --git a/docs/development/validation.md b/docs/development/validation.md index 13c985ce6..12884443e 100644 --- a/docs/development/validation.md +++ b/docs/development/validation.md @@ -277,6 +277,7 @@ Replace `all` with comma-separated runtime IDs to select a subset. Bundled reads | 编辑器与时间线 | 结构往返、素材保护、重开续编、真实文件播放及导出 | | UI 与 Agent 接入 | 相同意图的业务结果一致,交错编辑和草稿保留 | | 交互与同步 | 真实拖动、缩放、焦点、锁定、重复事件和断线恢复 | +| 桌面壳与原生能力 | 渲染进程权限清单、安装包冒烟中脚本与点击两种激活下的剪贴板实际写入、全屏请求;浏览器默认授权不能代表桌面壳行为 | | 性能 | 固定素材和手势下比较帧延迟、长任务、内存或 CPU 数据 | | 文档 | 链接、命令与文件路径正确,依赖文件随仓库交付 |