build(release): enforce neutral runtime layout

Keep release files at the archive root and reject product-named directory components before CI packages artifacts.

Use neutral directories for media staging, WebUI uploads, stream storage, and MCP downloads so packaged and runtime layouts remain consistent.
This commit is contained in:
DrSmoothl committed 2026-08-06 23:08:19 +08:00
1 parent c0e73cd738
commit f1ae0736c6
11 files changed
+53 -8

No files matched your search

+1 -1
View File
@@ -273,7 +273,7 @@ function resolveManagedRoot(input: string): string {
return path.join(fs.realpathSync(parent), path.basename(absolute));
}
export const streamStorage = new StreamStorage(path.join(os.tmpdir(), 'snowluma-stream'));
export const streamStorage = new StreamStorage(path.join(os.tmpdir(), 'onebot-stream'));
export const STREAM_ROOT = streamStorage.root;
export const STREAM_UPLOAD_DIR = streamStorage.uploadDir;
export const STREAM_DOWNLOAD_DIR = streamStorage.downloadDir;