mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 08:16:40 +01:00
chore(dx/desktop): get prod build
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user