Files
MemRelay/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/打包拷贝 vendor 里的 adb 和 WebView2.md
T
memrelay 969bee8aea update: 打包拷贝 vendor 里的 adb 和 WebView2
MemRelay-Operation: memory-save:rapt-package-copy-vendor-20260927
MemRelay-Resource: c8015de9-c56c-478b-a0b9-2e77f00d6dd2
2026-09-27 07:07:05 +08:00

25 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 打包拷贝 vendor 里的 adb 和 WebView2
type: decision
permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/打包拷贝-vendor-里的-adb-和-web-view2
stable_id: c8015de9-c56c-478b-a0b9-2e77f00d6dd2
scope: project
memory_type: decision
project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 2
request_id: rapt-package-copy-vendor-20260927
created_at: '2026-09-26T22:48:23.721430+00:00'
updated_at: '2026-09-26T23:07:02.062460+00:00'
---
打包不再下载 adb 和 WebView2。本地已有文件直接拷贝:
- adb 放在 `vendor/platform-tools`(adb.exe、AdbWinApi.dll、AdbWinUsbApi.dll、libwinpthread-1.dll,platform-tools 37.0.0)。打包时拷到压缩包的 `tools/platform-tools`。运行时也会找 `vendor/platform-tools`。
- WebView2 使用已经放在 `vendor/webview2/MicrosoftEdgeWebView2RuntimeInstallerX64.exe` 的离线安装包,不使用 NuGet 固定版本运行时。本机注册表没有 Evergreen 运行时时,启动程序执行该安装包 `/silent /install`。
- README 不打进 zip。
- ffmpeg 仍从 `tools/ffmpeg/ffmpeg.exe` 拷贝。
- 嵌入式 Python 仍使用 `dist/cache`,缺少时才下载。
`vendor/platform-tools/` 已加入 .gitignore。旧的 `dist/RaptDrama-Download-Tools-windows-x64.zip` 被占用时,新包写到同目录的 `-new.zip`。