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

Rename upstream image paths

This commit is contained in:
aclist 2022-08-06 04:19:14 +09:00
parent 38d375444b
commit 52c3a6950c

View file

@ -155,7 +155,7 @@ cat <<-END
Version=1.0 Version=1.0
Type=Application Type=Application
Terminal=false Terminal=false
Exec=$freedesktop_path/dzgui.sh Exec=/home/deck/Downloads/dzgui.sh
Name=DZGUI Name=DZGUI
Comment=dzgui Comment=dzgui
Icon=$HOME/.local/share/dzgui/dzgui Icon=$HOME/.local/share/dzgui/dzgui
@ -166,10 +166,8 @@ guess_path(){
if [[ $is_steam_deck -eq 1 ]]; then if [[ $is_steam_deck -eq 1 ]]; then
mkdir -p $HOME/.local/share/dzgui mkdir -p $HOME/.local/share/dzgui
mkdir -p "$freedesktop_path" mkdir -p "$freedesktop_path"
curl -Ls "$version_url" > "$freedesktop_path/dzgui.sh"
chmod +x "$freedesktop_path/dzgui.sh"
#TODO: update url #TODO: update url
img_url="https://raw.githubusercontent.com/aclist/dztui/testing" img_url="https://github.com/aclist/dztui/raw/testing/images"
for i in dzgui grid.png hero.png logo.png; do for i in dzgui grid.png hero.png logo.png; do
curl -s "$img_url/$i" > "$HOME/.local/share/dzgui/$i" curl -s "$img_url/$i" > "$HOME/.local/share/dzgui/$i"
done done
@ -768,8 +766,6 @@ download_new_version(){
source_dir=$(dirname "$source_script") source_dir=$(dirname "$source_script")
mv $source_script $source_script.old mv $source_script $source_script.old
curl -Ls "$version_url" > $source_script curl -Ls "$version_url" > $source_script
curl -Ls "$version_url" > $freedesktop_path/dzgui.sh
chmod +x $freedesktop_path/dzgui.sh
rc=$? rc=$?
if [[ $rc -eq 0 ]]; then if [[ $rc -eq 0 ]]; then
echo "[DZGUI] Wrote $upstream to $source_script" echo "[DZGUI] Wrote $upstream to $source_script"