MemRelay-Operation: memory-save:rapt-no-hardcoded-paths-20260927 MemRelay-Resource: c9120bb1-e23b-4e9f-9674-ee88be2f3940
969 B
969 B
title, type, permalink, stable_id, scope, memory_type, project_id, usage_profile_id, status, revision, request_id, created_at, updated_at, tags
| title | type | permalink | stable_id | scope | memory_type | project_id | usage_profile_id | status | revision | request_id | created_at | updated_at | tags | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 不把开发机路径写进分发包 | decision | main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/不把开发机路径写进分发包 | c9120bb1-e23b-4e9f-9674-ee88be2f3940 | project | decision | 280dd2a0-d23d-4a71-91e1-dce4353163be | 0c9feb46-d06e-43cd-9ef0-c5813c84a998 | active | 1 | rapt-no-hardcoded-paths-20260927 | 2026-09-27T07:47:09.401228+00:00 | 2026-09-27T07:47:09.401228+00:00 |
|
业务代码没有写死开发机路径。缓存、封面、分集、ffmpeg、adb 都相对程序所在目录;下载目录相对当前工作目录。pyc 里看到的本机路径是 compileall 写进字节码的源文件名,只用于报错,不用于找文件。打包编译改为 -s 服务端目录 -p server,字节码里只留 server...。正式版不再把 CARGO_MANIFEST_DIR 编进 exe,开发版才用仓库目录。