fix(monorepo/electron): copy-dist failing

This commit is contained in:
Elian Doran
2025-04-19 00:20:18 +03:00
parent 27465275f6
commit e027f7e37b
4 changed files with 4 additions and 4 deletions

View File

@@ -22,8 +22,8 @@ try {
*/
const assetsToCopy = new Set([
"./forge.config.cjs",
"./bin/electron-forge/desktop.ejs",
"./bin/electron-forge/sign-windows.cjs",
"./scripts/electron-forge/desktop.ejs",
"./scripts/electron-forge/sign-windows.cjs",
]);
for (const asset of assetsToCopy) {
@@ -34,7 +34,7 @@ try {
/**
* Directories to be copied relative to the project root into <resource_dir>/src/public/app-dist.
*/
const publicDirsToCopy = ["./src/public/app/doc_notes"];
const publicDirsToCopy = ["../server/src/public/app/doc_notes"];
const PUBLIC_DIR = path.join(DEST_DIR, "src", "public", "app-dist");
for (const dir of publicDirsToCopy) {
fs.copySync(dir, path.join(PUBLIC_DIR, path.basename(dir)));