Support 1.2.25.1011.g0348b2ea

This commit is contained in:
jetfir3
2023-11-22 09:49:36 -05:00
committed by GitHub
parent 74c77ae583
commit 02d4729ca1
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
<center> <center>
<h4 align="center">Adblock for the Spotify desktop client on Linux & macOS</h4> <h4 align="center">Adblock for the Spotify desktop client on Linux & macOS</h4>
<p align="center"> <p align="center">
<strong>Latest supported version:</strong> 1.2.25.1009.g075ce884 <strong>Latest supported version:</strong> 1.2.25.1011.g0348b2ea
</p> </p>
</center> </center>

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
buildVer="1.2.25.1009.g075ce884" buildVer="1.2.25.1011.g0348b2ea"
case $(uname | tr '[:upper:]' '[:lower:]') in case $(uname | tr '[:upper:]' '[:lower:]') in
darwin*) platformType='macOS' ;; darwin*) platformType='macOS' ;;
@@ -190,7 +190,7 @@ search_path_linux () {
local path="${path}" local path="${path}"
local timeLimit=$(($(date +%s) + timeout)) local timeLimit=$(($(date +%s) + timeout))
while (( $(date +%s) < "${timeLimit}" )); do while (( $(date +%s) < "${timeLimit}" )); do
installPath=$(find "${path}" -type f -path "*/spotify*Apps/*" -name "xpui.spa" -size -10M -size +3M -print -quit 2>/dev/null | rev | cut -d/ -f3- | rev) installPath=$(find "${path}" -type f -path "*/spotify*Apps/*" -name "xpui.spa" -size -10M -size +3M -print -quit 2>/dev/null | grep -v "snap" | rev | cut -d/ -f3- | rev)
[[ -n "${installPath}" ]] && return 0 [[ -n "${installPath}" ]] && return 0
pgrep -x find > /dev/null || break pgrep -x find > /dev/null || break
sleep 1 sleep 1