inital commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import type { BuildStream } from "./types";
|
||||
|
||||
const activeBuildStreams = new Map<string, BuildStream>();
|
||||
|
||||
export function addBuildStream(id: string, build: BuildStream): void {
|
||||
activeBuildStreams.set(id, build);
|
||||
}
|
||||
|
||||
export function getBuildStream(id: string): BuildStream | undefined {
|
||||
return activeBuildStreams.get(id);
|
||||
}
|
||||
|
||||
export function deleteBuildStream(id: string): boolean {
|
||||
return activeBuildStreams.delete(id);
|
||||
}
|
||||
|
||||
export function getAllBuildStreams(): Map<string, BuildStream> {
|
||||
return activeBuildStreams;
|
||||
}
|
||||
|
||||
export function hasBuildStream(id: string): boolean {
|
||||
return activeBuildStreams.has(id);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
export type BuildStream = {
|
||||
id: string;
|
||||
controllers: ReadableStreamDefaultController[];
|
||||
status: "running" | "completed" | "failed";
|
||||
startTime: number;
|
||||
expiresAt: number;
|
||||
files: { name: string; size: number; platform?: string }[];
|
||||
updates?: any[];
|
||||
};
|
||||
|
||||
export type BuildConfig = {
|
||||
platforms: string[];
|
||||
serverUrl?: string;
|
||||
rawServerList?: boolean;
|
||||
mutex?: string;
|
||||
disableMutex?: boolean;
|
||||
stripDebug?: boolean;
|
||||
disableCgo?: boolean;
|
||||
obfuscate?: boolean;
|
||||
enablePersistence?: boolean;
|
||||
hideConsole?: boolean;
|
||||
noPrinting?: boolean;
|
||||
};
|
||||
Reference in New Issue
Block a user