From 82bce29395f2e79bed990a67124e38a095a837d3 Mon Sep 17 00:00:00 2001 From: Christoph Settgast Date: Mon, 22 Jan 2024 12:27:20 +0100 Subject: dev: get electron-reload back to work (#943) --- patches/electron-reload+1.5.0.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/electron-reload+1.5.0.patch diff --git a/patches/electron-reload+1.5.0.patch b/patches/electron-reload+1.5.0.patch new file mode 100644 index 0000000..51f7501 --- /dev/null +++ b/patches/electron-reload+1.5.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/electron-reload/main.js b/node_modules/electron-reload/main.js +index 688934d..860e071 100644 +--- a/node_modules/electron-reload/main.js ++++ b/node_modules/electron-reload/main.js +@@ -9,7 +9,7 @@ const ignoredPaths = /node_modules|[/\\]\./ + // only effective when the process is restarted (hard reset) + // We assume that electron-reload is required by the main + // file of the electron application +-const mainFile = module.parent.filename ++const mainFile = 'build/main.js' + + /** + * Creates a callback for hard resets. -- cgit v1.2.3