aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Settgast <csett86_git@quicksands.de>2024-01-22 12:27:20 +0100
committerGitHub <noreply@github.com>2024-01-22 12:27:20 +0100
commit82bce29395f2e79bed990a67124e38a095a837d3 (patch)
tree635b9958fc72a5947aaec457b44af2452fcb3910
parent52e273e2fa4c820a9b3c2c21c238765ddf76af66 (diff)
dev: get electron-reload back to work (#943)
-rw-r--r--patches/electron-reload+1.5.0.patch13
1 files changed, 13 insertions, 0 deletions
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.