0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-09-28 01:29:03 +03:00

Update patches and repack script

This commit is contained in:
Andrey Onishchenko
2024-12-06 23:06:35 +03:00
parent 9cd5cdb864
commit 8767a74c0e
7 changed files with 19 additions and 118 deletions

View File

@@ -72,8 +72,8 @@ echo "Spoofing OS"
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/r.t.WINDOWS/r.t.LINUX/g" "$file"
sed -i "s/B.LINUX/B.WINDOWS/g" "$file"
sed -i "s/t4T.WINDOWS/t4T[window.CUSTOM_TITLE_BAR ? 'LINUX' : 'WINDOWS']/g" "$file"
sed -i "s/l.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g" "$file"
sed -i "s/a.isLinuxApplication/(window.CUSTOM_TITLE_BAR)/g" "$file"
done
echo "OS spoofed"