fix: store source path

This commit is contained in:
aclist 2026-01-15 05:04:10 +09:00
parent ebc62b0b1b
commit 1034a5ac04
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,6 @@
set -o pipefail
src_path="$(readlink -e "$0")"
version=6.0.0
#CONSTANTS
@ -41,6 +40,8 @@ cols_file="$state_path/$prefix.cols.json"
#CACHE FILES
coords_file="$cache_path/$prefix.coords"
src_path_file="$cache_path/$prefix.src"
echo "$src_path" > "$src_path_file"
#legacy paths
hist_file="$config_path/history"
@ -624,7 +625,7 @@ fetch_helpers_by_sum(){
[[ -f "$config_file" ]] && source "$config_file"
declare -A sums
sums=(
["funcs"]="7844ba7d7a1bc8bd6e638317aab694d7"
["funcs"]="2ac0ccc6c697208a1b097508d55ad886"
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
["servers.py"]="ed442c3aecf33f777d59dcf53650d263"
["ui.py"]="3d67e5e8e85a23dde1fd0e85a9be62a9"

View File

@ -51,6 +51,7 @@ _cache_binary="$cache_dir/$prefix.binary"
_cache_coords="$cache_path/$prefix.coords"
_cache_cooldown="$cache_path/$prefix.cooldown"
_cache_lan="$cache_path/$prefix.lan"
_cache_src_path="$cache_path/$prefix.src"
#XDG
freedesktop_path="$HOME/.local/share/applications"
@ -588,9 +589,6 @@ default_steam_path="$default_steam_path"
#Preferred Steam launch command (for Flatpak support)
preferred_client="$preferred_client"
#DZGUI source path
src_path="$src_path"
END
}
format_version_url(){
@ -644,6 +642,7 @@ download_new_version(){
return 1
fi
local version_url="$(format_version_url)"
local src_path="$(< "$_cache_src_path")"
mv "$src_path" "$src_path.old"
curl -Ls "$version_url" > "$src_path"
rc=$?