~earboxer/apkbrowser-gemini

ref: 951fce8bc42cff0f204bf85e3634846a4132ce15 apkbrowser-gemini/packages -rwxr-xr-x 321 bytes
951fce8bZach DeCook Sub Packages: Add 5 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.