The engine's source as released, from the clone's own history. Null when the tag is not there.
()
| 136 | |
| 137 | /** The engine's source as released, from the clone's own history. Null when the tag is not there. */ |
| 138 | function engineProject() { |
| 139 | const dir = join(work, 'real', `engine-${ENGINE_TAG}`); |
| 140 | mkdirSync(dir, { recursive: true }); |
| 141 | const archive = join(work, 'engine.tar'); |
| 142 | const made = run('git', ['-C', repo, 'archive', '--format=tar', '-o', archive, ENGINE_TAG]); |
| 143 | if (made.status !== 0) return null; |
| 144 | if (run('tar', ['-xf', archive, '-C', dir]).status !== 0) return null; |
| 145 | return { id: `real/engine-${ENGINE_TAG}`, dir, real: true }; |
| 146 | } |
| 147 | |
| 148 | /** Each real file's project, fetched once and kept in a cache. Null when it cannot be had. */ |
| 149 | async function realFileProjects() { |