From ad8b5c7c9d9445d61cc0a5f3568c8d25e155cfba Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 24 Mar 2025 08:59:46 +0200 Subject: [PATCH] fix(ci): path for hook module script --- forge.config.cjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forge.config.cjs b/forge.config.cjs index 288826f8a..0524d71fa 100644 --- a/forge.config.cjs +++ b/forge.config.cjs @@ -2,11 +2,12 @@ const path = require("path"); const fs = require("fs-extra"); const APP_NAME = "TriliumNext Notes"; +const BIN_PATH = path.normalize("./bin/electron-forge"); const extraResourcesForPlatform = getExtraResourcesForPlatform(); const baseLinuxMakerConfigOptions = { icon: "./images/app-icons/png/128x128.png", - desktopTemplate: path.resolve("./bin/electron-forge/desktop.ejs"), + desktopTemplate: path.resolve(path.join(BIN_PATH, desktop.ejs)), categories: ["Office", "Utility"] }; @@ -27,7 +28,7 @@ module.exports = { teamId: process.env.APPLE_TEAM_ID }, windowsSign: { - hookModulePath: "bin\\sign-windows.cjs" + hookModulePath: path.join(BIN_PATH, "sign-windows.cjs") }, extraResource: [ // All resources should stay in Resources directory for macOS