Compare commits

..

4 Commits

Author SHA1 Message Date
aclist
fb728e0418
Merge 5bce8709af into a08c588df3 2025-11-10 03:07:51 +00:00
aclist
5bce8709af chore: enforce stricter python version
Some checks failed
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-11-10 12:07:35 +09:00
aclist
a418bcfb90 fix: return from finally block 2025-11-10 11:42:26 +09:00
aclist
90d59cec97 chore: drop legacy src_path logic 2025-11-06 14:52:35 +09:00
4 changed files with 14 additions and 15 deletions

View File

@ -1,5 +1,10 @@
# Changelog # Changelog
## [6.0.1-beta.2] 2025-11-10
## Fixed
- Python 3.14 error in finally block
- Require Python version between 3.11 and 3.12
## [6.0.1-beta.1] 2025-11-05 ## [6.0.1-beta.1] 2025-11-05
## Fixed ## Fixed
- UI not being constructed correctly if CHANGELOG.md was missing - UI not being constructed correctly if CHANGELOG.md was missing

View File

@ -1,7 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=6.0.1.beta-1 src_path=$(realpath "$0")
version=6.0.1.beta-2
reference_branch="prerelease/6.0.1-beta.1" reference_branch="prerelease/6.0.1-beta.1"
#CONSTANTS #CONSTANTS
@ -219,9 +221,6 @@ default_steam_path="$default_steam_path"
#Preferred Steam launch command (for Flatpak support) #Preferred Steam launch command (for Flatpak support)
preferred_client="$preferred_client" preferred_client="$preferred_client"
#DZGUI source path
src_path="$src_path"
END END
} }
depcheck(){ depcheck(){
@ -240,8 +239,8 @@ depcheck(){
check_pyver(){ check_pyver(){
local pyver=$(python3 --version | awk '{print $2}') local pyver=$(python3 --version | awk '{print $2}')
local minor=$(<<< $pyver awk -F. '{print $2}') local minor=$(<<< $pyver awk -F. '{print $2}')
if [[ -z $pyver ]] || [[ ${pyver:0:1} -lt 3 ]] || [[ $minor -lt 10 ]]; then if [[ -z $pyver ]] || [[ ${pyver:0:1} -lt 3 ]] || [[ $minor -lt 11 ]] || [[ $minor -gt 12 ]]; then
local msg="Requires Python >=3.10" local msg="Requires Python 3.11 or 3.12"
raise_error_and_quit "$msg" raise_error_and_quit "$msg"
fi fi
logger INFO "Found Python version: $pyver" logger INFO "Found Python version: $pyver"
@ -617,10 +616,10 @@ fetch_helpers_by_sum(){
[[ -f "$config_file" ]] && source "$config_file" [[ -f "$config_file" ]] && source "$config_file"
declare -A sums declare -A sums
sums=( sums=(
["funcs"]="2bac12c1bff5d6ad50161f174d57d029" ["funcs"]="5d7d92b7b8a9c788b133ce5271a76553"
["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
["servers.py"]="ed442c3aecf33f777d59dcf53650d263" ["servers.py"]="ed442c3aecf33f777d59dcf53650d263"
["ui.py"]="8a35ac263db8b812f30e04902c4e9603" ["ui.py"]="2476397883a4272eaf940403ba5a6575"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["pefile.py"]="21531f2c0d9dfa5f110cf6779f9d22c0" ["pefile.py"]="21531f2c0d9dfa5f110cf6779f9d22c0"
) )
@ -985,10 +984,6 @@ varcheck(){
create_config create_config
return 0 return 0
fi fi
if [[ $src_path != $(realpath "$0") ]]; then
src_path=$(realpath "$0")
update_config
fi
} }
is_dzg_downloading(){ is_dzg_downloading(){
if [[ -d $steam_path ]] && [[ -d $steam_path/downloading/$aid ]]; then if [[ -d $steam_path ]] && [[ -d $steam_path/downloading/$aid ]]; then

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version="6.0.1-beta.1" version="6.0.1-beta.2"
#CONSTANTS #CONSTANTS
aid=221100 aid=221100

View File

@ -824,8 +824,7 @@ def query_history() -> list | None:
rows = [row.rstrip("\n") for row in f] rows = [row.rstrip("\n") for row in f]
except OSError: except OSError:
rows = None rows = None
finally: return rows
return rows
def query_favorites() -> None | list: def query_favorites() -> None | list: