Skip to content

Build your personal knowledge base with Trilium Notes

fix(forge): allow local building by ignoring the signing options

Elian Doran6f26f4d7986c
diff --git a/forge.config.cjs b/forge.config.cjs
index 2e381386f4..71973e29ee 100644
--- a/forge.config.cjs
+++ b/forge.config.cjs
@@ -10,9 +10,9 @@ const baseLinuxMakerConfigOptions = {
desktopTemplate: path.resolve(path.join(BIN_PATH, "desktop.ejs")),
categories: ["Office", "Utility"]
};
-const windowsSignConfiguration = {
+const windowsSignConfiguration = process.env.WINDOWS_SIGN_EXECUTABLE ? {
hookModulePath: path.join(BIN_PATH, "sign-windows.cjs")
-}
+} : undefined;
module.exports = {
// we run electron-forge inside the ./build folder,