MCPcopy Index your code
hub / github.com/desktop/desktop / copyStaticResources

Function copyStaticResources

script/build.ts:263–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261}
262
263function copyStaticResources() {
264 const dirName = process.platform
265 const platformSpecific = path.join(projectRoot, 'app', 'static', dirName)
266 const common = path.join(projectRoot, 'app', 'static', 'common')
267 const destination = path.join(outRoot, 'static')
268 rmSync(destination, { recursive: true, force: true })
269 if (existsSync(platformSpecific)) {
270 cpSync(platformSpecific, destination, {
271 recursive: true,
272 verbatimSymlinks: true,
273 })
274 }
275 cpSync(common, destination, {
276 recursive: true,
277 force: false,
278 verbatimSymlinks: true,
279 })
280}
281
282function moveAnalysisFiles() {
283 const rendererReport = 'renderer.report.html'

Callers 1

build.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected