0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-04-12 12:03:42 +03:00

Merge pull request #154 from alldevic/os-spoofing

This commit is contained in:
Andrey Onischenko 2025-02-14 14:57:16 +03:00 committed by GitHub
commit 24b3809899
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,6 +73,10 @@ find "./" -type f \( -name "*.js" -o -name "*.js.map" \) -print0 | while IFS= re
sed -i 's/l.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file"
sed -i 's/o.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g' "$file"
sed -i 's/panel:!1,allowOverwriteExperiments:!1/panel:window.IS_DEVTOOLS_ENABLED??!1,allowOverwriteExperiments:window.IS_DEVTOOLS_ENABLED??!1/g' "$file"
sed -i 's/OS",o.LINUX="Linux"}/OS",o.LINUX="Windows"}/g' "$file"
sed -i 's/LINUX:"98548790"/LINUX:"95673843"/g' "$file"
sed -i 's/LINUX:"d2bcdb71-90ac-493b-b68f-024321954a5d"/LINUX:"0d8ab1a6-1667-42cb-a98f-2fe7eff4b137"/g' "$file"
sed -i 's/case n.t.LINUX:e="uVNvVMAvdrvjtwN0VlhEt2"/case n.t.LINUX:e="kzqU4XhfCaY6B6JTHODeq5"/g' "$file"
done
echo ".js chunks patched"