diff --git a/patches/0005-Custom-title-bar.patch b/patches/0005-Custom-title-bar.patch new file mode 100644 index 0000000..0ff0c0c --- /dev/null +++ b/patches/0005-Custom-title-bar.patch @@ -0,0 +1,14 @@ +diff --git a/main/index.js b/main/index.js +--- a/main/index.js ++++ b/main/index.js +@@ -50,9 +50,7 @@ Logger_js_1.Logger.setupLogger(); + const trayEnabled = process.env.TRAY_ENABLED && process.env.TRAY_ENABLED > 0; + if (trayEnabled){createTray(window);} + await (0, loadURL_js_1.loadURL)(window); +- if (node_os_1.default.platform() === platform_js_1.Platform.WINDOWS) { +- (0, customTitleBar_js_1.createCustomTitleBar)(window); +- } ++ (0, customTitleBar_js_1.createCustomTitleBar)(window); + if (config_js_1.config.enableAutoUpdate) { + updater.start(); + updater.onUpdate((version) => { diff --git a/repack.sh b/repack.sh index 7f0118a..3f3af68 100755 --- a/repack.sh +++ b/repack.sh @@ -73,6 +73,7 @@ find "./" -type f \( -name "*.js" -o -name "*.js.map" \) -print0 | while IFS= re # Use 'sed' to perform the replacement in-place sed -i "s/a.t.WINDOWS/a.t.LINUX/g" "$file" sed -i "s/B.LINUX/B.WINDOWS/g" "$file" + sed -i "s/t4T.WINDOWS/t4T.LINUX/g" "$file" done echo "OS spoofed"