mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(monorepo/electron): copy-dist failing
This commit is contained in:
parent
27465275f6
commit
e027f7e37b
@ -187,7 +187,7 @@ function getExtraResourcesForPlatform() {
|
|||||||
const getScriptRessources = () => {
|
const getScriptRessources = () => {
|
||||||
const scripts = ["trilium-portable", "trilium-safe-mode", "trilium-no-cert-check"];
|
const scripts = ["trilium-portable", "trilium-safe-mode", "trilium-no-cert-check"];
|
||||||
const scriptExt = (process.platform === "win32") ? "bat" : "sh";
|
const scriptExt = (process.platform === "win32") ? "bat" : "sh";
|
||||||
return scripts.map(script => `./bin/tpl/${script}.${scriptExt}`);
|
return scripts.map(script => `./tpl/${script}.${scriptExt}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
@ -22,8 +22,8 @@ try {
|
|||||||
*/
|
*/
|
||||||
const assetsToCopy = new Set([
|
const assetsToCopy = new Set([
|
||||||
"./forge.config.cjs",
|
"./forge.config.cjs",
|
||||||
"./bin/electron-forge/desktop.ejs",
|
"./scripts/electron-forge/desktop.ejs",
|
||||||
"./bin/electron-forge/sign-windows.cjs",
|
"./scripts/electron-forge/sign-windows.cjs",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
for (const asset of assetsToCopy) {
|
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.
|
* 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");
|
const PUBLIC_DIR = path.join(DEST_DIR, "src", "public", "app-dist");
|
||||||
for (const dir of publicDirsToCopy) {
|
for (const dir of publicDirsToCopy) {
|
||||||
fs.copySync(dir, path.join(PUBLIC_DIR, path.basename(dir)));
|
fs.copySync(dir, path.join(PUBLIC_DIR, path.basename(dir)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user