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

Function removeVersion

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

Source from the content-addressed store, hash-verified

119}
120
121function removeVersion(name: string): void {
122 const versions = readVersions()
123 delete versions[name]
124 try {
125 fs.writeFileSync(getVersionsPath(), JSON.stringify(versions, null, 2))
126 } catch (err) {
127 logger.debug('[Binaries] Error writing versions file:', err)
128 }
129}
130
131function getBinaryPath(def: BinaryDef): string | null {
132 const filename = def.filename[process.platform]

Callers 1

removeRuntimeBinaryFunction · 0.85

Calls 2

readVersionsFunction · 0.85
getVersionsPathFunction · 0.85

Tested by

no test coverage detected