MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / prepareDesktopBuild

Function prepareDesktopBuild

tooling/scripts/perf-desktop-runtime.mjs:557–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

555}
556
557async function prepareDesktopBuild() {
558 if (packagedAppPath) {
559 await access(packagedAppExecutablePath(packagedAppPath), constants.X_OK)
560 return
561 }
562 if (skipDesktopBuild && (await fileExists(desktopOutMain))) return
563 await run(npmCommand, ['run', 'build', '--workspace', '@zennotes/desktop'], {
564 shell: process.platform === 'win32'
565 })
566}
567
568async function main() {
569 await prepareDesktopBuild()

Callers 1

mainFunction · 0.85

Calls 3

fileExistsFunction · 0.70
runFunction · 0.70

Tested by

no test coverage detected