From 9f68480abb20a46ca941f7899ca5f91c1dfc6a42 Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Mon, 29 Jan 2024 19:48:31 +0300 Subject: [PATCH] App quiting fix --- repack.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repack.sh b/repack.sh index 695c9e5..e391713 100755 --- a/repack.sh +++ b/repack.sh @@ -86,6 +86,9 @@ find "./" -type f -name "*.html" -print0 | while IFS= read -r -d $'\0' file; do done echo "Title Fixed" +echo "Fixing App Quiting" +sed -i "s/window.on('close', (event) => {/window.on('close', (event) => {electron_1.app.quit();/g" "./main/lib/handlers/handleWindowLifecycleEvents.js" + if [ -n "$extract_only" ]; then exit 0 fi