From ea7d26a743f82dfba02ac592c9c3e9092f24a77f Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Wed, 18 Dec 2024 18:39:36 +0300 Subject: [PATCH] Remove OS Spoof. Fixes #143 --- repack.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/repack.sh b/repack.sh index a461916..62bf68e 100755 --- a/repack.sh +++ b/repack.sh @@ -67,13 +67,11 @@ curdir="$PWD" cd "$TEMPDIR/app" -echo "Fixing SecretKey" -echo "Spoofing OS" +echo "Patching .js chunks" find "./" -type f \( -name "*.js" -o -name "*.js.map" \) -print0 | while IFS= read -r -d $'\0' file; do # Use 'sed' to perform the replacement in-place - sed -i 's/WINDOWS:e="kzqU4XhfCaY6B6JTHODeq5"/LINUX:e="kzqU4XhfCaY6B6JTHODeq5"/g' "$file" sed -i 's/l.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file" - sed -i 's/a.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file" + sed -i 's/o.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file" done echo "OS spoofed"