fix(ci): path for hook module script

This commit is contained in:
Elian Doran 2025-03-24 08:59:46 +02:00
parent 40f4fdab47
commit ad8b5c7c9d
No known key found for this signature in database

View File

@ -2,11 +2,12 @@ const path = require("path");
const fs = require("fs-extra"); const fs = require("fs-extra");
const APP_NAME = "TriliumNext Notes"; const APP_NAME = "TriliumNext Notes";
const BIN_PATH = path.normalize("./bin/electron-forge");
const extraResourcesForPlatform = getExtraResourcesForPlatform(); const extraResourcesForPlatform = getExtraResourcesForPlatform();
const baseLinuxMakerConfigOptions = { const baseLinuxMakerConfigOptions = {
icon: "./images/app-icons/png/128x128.png", 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"] categories: ["Office", "Utility"]
}; };
@ -27,7 +28,7 @@ module.exports = {
teamId: process.env.APPLE_TEAM_ID teamId: process.env.APPLE_TEAM_ID
}, },
windowsSign: { windowsSign: {
hookModulePath: "bin\\sign-windows.cjs" hookModulePath: path.join(BIN_PATH, "sign-windows.cjs")
}, },
extraResource: [ extraResource: [
// All resources should stay in Resources directory for macOS // All resources should stay in Resources directory for macOS