chore(dx/desktop): get prod build

This commit is contained in:
Elian Doran
2025-09-01 20:50:22 +03:00
parent 72a256eccf
commit 135e2bb10e
5 changed files with 33 additions and 46 deletions

View File

@@ -19,10 +19,17 @@ export default class BuildHelper {
}
copy(projectDirPath: string, outDirPath: string) {
let sourcePath: string;
if (projectDirPath.startsWith("/")) {
sourcePath = join(this.rootDir, projectDirPath.substring(1));
} else {
sourcePath = join(this.projectDir, projectDirPath);
}
if (outDirPath.endsWith("/")) {
mkdirpSync(join(outDirPath));
}
copySync(join(this.projectDir, projectDirPath), join(this.outDir, outDirPath), { dereference: true });
copySync(sourcePath, join(this.outDir, outDirPath), { dereference: true });
}
deleteFromOutput(path: string) {