diff --git a/get-dependencies.sh b/get-dependencies.sh index 21a15e3..6aa661f 100644 --- a/get-dependencies.sh +++ b/get-dependencies.sh @@ -11,7 +11,7 @@ make-aur-package python-emoji-country-flag make-aur-package aria2p # Switch to the official package when it updates make-aur-package -pacman -Syu --noconfirm python-charset-normalizer +pacman -Syu --noconfirm python-charset-normalizer jq echo "Installing debloated packages..." echo "---------------------------------------------------------------" diff --git a/make-appimage.sh b/make-appimage.sh index 27682ed..65ac78d 100644 --- a/make-appimage.sh +++ b/make-appimage.sh @@ -38,6 +38,17 @@ quick-sharun /usr/bin/varia \ wget --retry-connrefused --tries=30 "https://pkgs.pkgforge.dev/dl/bincache/$ARCH-linux/7z/official/7z/raw.dl" -O ./AppDir/bin/7z chmod +x ./AppDir/bin/7z +# Download missing icons +TARGET_DIR="./AppDir/share/icons/hicolor/symbolic/ui/" +mkdir -p "$TARGET_DIR" +REPO="giantpinkrobots/varia" +BRANCH="next" +PATH_DIR="data/icons/hicolor/symbolic/ui" +URLS="$(curl -s "https://api.github.com/repos/$REPO/contents/$PATH_DIR?ref=$BRANCH" | jq -r '.[] | select(.type == "file") | .download_url')" +for url in $URLS; do + wget -P "$TARGET_DIR" "$url" +done + # Patch varia's shell script to be POSIX and to use AppImage directories cat << 'EOF' > ./AppDir/bin/varia #!/bin/sh