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:
11 files changed
+53
-8
No files matched your search
@@ -161,7 +161,7 @@ export async function encodeSilk(inputFile: string, tempDir: string): Promise<En
|
||||
|
||||
/** Default location for temporary silk files. */
|
||||
export function defaultPttTempDir(): string {
|
||||
return path.join(os.tmpdir(), 'snowluma-ptt');
|
||||
return path.join(os.tmpdir(), 'audio-upload');
|
||||
}
|
||||
|
||||
// ── audio transcode (get_record out_format, #165) ──
|
||||
@@ -220,7 +220,7 @@ export async function convertAudioBytes(
|
||||
}
|
||||
const addon = deps.addon ?? getFFmpegAddon();
|
||||
const maxOut = deps.maxOutputBytes ?? DEFAULT_MAX_AUDIO_OUTPUT;
|
||||
const dir = deps.tmpDir ?? path.join(os.tmpdir(), 'snowluma-rec');
|
||||
const dir = deps.tmpDir ?? path.join(os.tmpdir(), 'audio-transcode');
|
||||
fs.mkdirSync(dir, { recursive: true });
|
||||
const id = crypto.randomBytes(8).toString('hex');
|
||||
const inPath = path.join(dir, `${id}.in`);
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
|
||||
const log = createLogger('Highway.Stage');
|
||||
|
||||
export const STAGE_DIR = path.join(os.tmpdir(), 'snowluma-stage');
|
||||
export const STAGE_DIR = path.join(os.tmpdir(), 'media-stage');
|
||||
// Must comfortably exceed the slowest plausible single upload (a 1.5 GiB PUT at
|
||||
// a few MB/s is ~5-10 min). Only unregistered (crash-orphaned) temps are reaped.
|
||||
const STAGE_TTL_MS = 30 * 60 * 1000;
|
||||
|
||||
Reference in new issue
Block a user