1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

chore: drop check news

This commit is contained in:
aclist 2024-01-31 18:07:47 +09:00
parent eeffd3a293
commit e6d62c94fa
3 changed files with 5 additions and 17 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=5.0.0.rc-46 version=5.0.0.rc-47
#CONSTANTS #CONSTANTS
aid=221100 aid=221100
@ -474,18 +474,6 @@ stale_symlinks(){
unlink $l unlink $l
done done
} }
check_news(){
[[ $branch == "stable" ]] && news_url="$stable_url/news"
[[ $branch == "testing" ]] && news_url="$testing_url/news"
local result=$(curl -Ls "$news_url")
local sum=$(<<< "$result" md5sum | awk '{print $1}')
if [[ $sum != "$seen_news" ]]; then
logger WARN "Local news checksum '$seen_news' != '$sum'"
seen_news="$sum"
update_config
echo "$result"
fi
}
local_latlon(){ local_latlon(){
if [[ -z $(command -v dig) ]]; then if [[ -z $(command -v dig) ]]; then
local local_ip=$(curl -Ls "https://ipecho.net/plain") local local_ip=$(curl -Ls "https://ipecho.net/plain")
@ -548,10 +536,10 @@ fetch_dzq(){
fetch_helpers_by_sum(){ fetch_helpers_by_sum(){
declare -A sums declare -A sums
sums=( sums=(
["ui.py"]="a96a6180ac7ddccf4d37ec3dbdbe9c90" ["ui.py"]="aae6bd048bc4786a914c3ed45bef82da"
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197" ["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="7b4a5388ece7f723d2d3bbc08bbc3187" ["funcs"]="6f853f3f0fa838ce731f203dddb22702"
) )
local author="aclist" local author="aclist"
local repo="dztui" local repo="dztui"

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=5.0.0.rc-46 version=5.0.0.rc-47
#CONSTANTS #CONSTANTS
aid=221100 aid=221100

View file

@ -16,7 +16,7 @@ locale.setlocale(locale.LC_ALL, '')
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib, Gdk, GObject, Pango from gi.repository import Gtk, GLib, Gdk, GObject, Pango
# 5.0.0-rc.46 # 5.0.0-rc.47
app_name = "DZGUI" app_name = "DZGUI"
cache = {} cache = {}