Skip to content

shrmpy/gmi

Repository files navigation

gmi

Yet-another Gemini reader

  1. One program built in Tcell which runs in the terminal: remote ssh session

  2. Another built in Ebitengine which hopefully becomes my Android app: mobile 360x640

Quickstart

git clone https://github.com/shrmpy/gmi
cd gmi && go build -o test cmd/term/*.go
./test -json config.json -log debug.log

Build in Local Container

cd gmi
docker build -t bc .
docker run -ti --rm --entrypoint sh -v $PWD:/opt/test bc
cp -R /opt/test/cmd/mobile/*.go cmd/mobile/
go build -o test cmd/mobile/*.go
cp test /opt/test/testmo
exit
./testmo

Make your own snap package

gmird

# ub server includes a empty lxd?
sudo snap remove --purge lxd
# reinstall lxd
sudo snap install lxd
sudo lxd init --auto
sudo usermod -a -G lxd ${USER}
# view config
lxc version
lxc profile show default
lxc storage show default
echo 'export SNAPCRAFT_BUILD_ENVIRONMENT=lxd' >> ~/.profile
sudo reboot
# retrieve YAML 
git clone https://github.com/shrmpy/gmi.git
cd gmi
# make snap 
snapcraft
# local install
sudo snap install gmird_0.0.24_arm64.snap --dangerous
# start reader
gmird.mobile

Credits

Font Renderer by tinne26 (LICENSE)

Golang Gemini Demo by Solderpunk (LICENSE)

min Gemini browser by Adrian Hesketh (LICENSE)

Tcell by Garrett D'Amore (LICENSE)

Ebitengine by Hajime Hoshi (LICENSE)

Lexical Scanning in Go by Rob Pike template source (LICENSE)

Noto Sans Mono by Google (LICENSE)

DejaVu Sans Mono by DejaVu (LICENSE)

Releases

No releases published

Packages

No packages published