| 261 | } |
| 262 | |
| 263 | function 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 | |
| 282 | function moveAnalysisFiles() { |
| 283 | const rendererReport = 'renderer.report.html' |