MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / removeRuntimeBinary

Function removeRuntimeBinary

projects/electron/src/modules/code/binaries.ts:302–314  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

300 * Remove a managed binary.
301 */
302export function removeRuntimeBinary(name: string): void {
303 const def = REGISTRY[name]
304 if (!def) return
305
306 const binaryPath = getBinaryPath(def)
307 if (!binaryPath) return
308
309 if (fs.existsSync(binaryPath)) {
310 fs.unlinkSync(binaryPath)
311 removeVersion(name)
312 logger.info(`[Binaries] Removed ${def.displayName} ${def.version}`)
313 }
314}
315
316export const load = () => {
317 logger.info("[Binaries] Initializing managed binary registry")

Callers 1

Calls 2

getBinaryPathFunction · 0.85
removeVersionFunction · 0.85

Tested by

no test coverage detected