refactor(nx/forge): typo

This commit is contained in:
Elian Doran 2025-04-26 11:58:35 +03:00
parent bfb2ca577d
commit 81df2e7fa8
No known key found for this signature in database

View File

@ -203,7 +203,7 @@ module.exports = {
function getExtraResourcesForPlatform() { function getExtraResourcesForPlatform() {
const resources = []; const resources = [];
const getScriptRessources = () => { const getScriptResources = () => {
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 => `apps/desktop/electron-forge/${script}.${scriptExt}`); return scripts.map(script => `apps/desktop/electron-forge/${script}.${scriptExt}`);
@ -211,10 +211,10 @@ function getExtraResourcesForPlatform() {
switch (process.platform) { switch (process.platform) {
case "win32": case "win32":
resources.push(...getScriptRessources()) resources.push(...getScriptResources())
break; break;
case "linux": case "linux":
resources.push(...getScriptRessources(), path.join(APP_ICON_PATH, "png/256x256.png")); resources.push(...getScriptResources(), path.join(APP_ICON_PATH, "png/256x256.png"));
break; break;
default: default:
break; break;