~earboxer/apkbrowser-gemini

ref: 4eca33468eb5c0e34792834733658701a9262656 apkbrowser-gemini/packages -rwxr-xr-x 321 bytes
4eca3346Zach DeCook package: Support going "up" a directory 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
#!/bin/sh
. ./config.sh
printf "20 text/gemini\r\n"
echo "# Packages"

printf 'select "=>", "/package/%s/" || repo ||"/"||arch||"/"||name,(name || "-" || version), license from packages limit 10;' "$default_branch"| \
sqlite3 -separator "$(printf "\t")" "db/$default_branch.db"

# TODO: Add pagination with query string.