Skip to content

Commit a3a690a

Browse files
committed
add donate, about actions, update readme, metainfo
1 parent b66b407 commit a3a690a

File tree

4 files changed

+121
-7
lines changed

4 files changed

+121
-7
lines changed

README.gemini

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# About geopard
2-
Geopard is a gtk3 gemini client
2+
Geopard is a gtk4 gemini client
33

44
## Some notable features
55
- Colors!
@@ -8,7 +8,7 @@ Geopard is a gtk3 gemini client
88
- Fast (async core + caching).
99
Streams content by default. That means you can open pages even when you have
1010
connection speeds of Kb/s.
11-
It also caches pages in the history, so you can go back in an instant
11+
It also caches pages in the history, so you can go back/forward in an instant
1212

1313

1414
- Can download binary files.
@@ -18,19 +18,21 @@ Geopard is a gtk3 gemini client
1818
- It works. Until I find another bug
1919

2020
## Technical details
21-
Under the hood, it uses gtk3 and rust. Everything related to IO is asynchronous.
21+
Under the hood, it uses gtk4 and rust. Everything related to IO is asynchronous.
2222
To do that, it makes use of rust async/await capabilities and the async-std crate.
2323

2424
# How to change settings
2525
You should find the configuration files in ~/.config/geopard/
26-
If you use flatpak, they are in ~/.var/app/com.ranfdev.Geopard/config/geopard/
26+
If you use flatpak, they are in ~/.var/app/com.ranfdev.Geopard/config/geopard/.
27+
In the future I will probably introduce a settings GUI.
2728

2829
## How to build
2930
### With Flatpak
3031
If you have gnome-builder installed, use it to the open the folder of the source
3132
code and hit the run button.
3233

3334
### Build with Nix
35+
** currently broken **
3436
If you have the
3537
=> https://nixos.org/ nix
3638
package manager, you can simply do:
@@ -44,7 +46,7 @@ nix-build nix/default.nix
4446
Clone this repo.
4547

4648
Install these development packages:
47-
- gtk3
49+
- gtk4
4850
- glib
4951
- rust (with cargo)
5052
- openssl

build-aux/com.ranfdev.Geopard.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"app-id" : "com.ranfdev.Geopard",
3+
"runtime" : "org.gnome.Sdk",
4+
"runtime-version" : "42",
5+
"sdk" : "org.gnome.Sdk",
6+
"sdk-extensions" : [
7+
"org.freedesktop.Sdk.Extension.rust-stable"
8+
],
9+
"command" : "geopard",
10+
"tags" : [
11+
"devel"
12+
],
13+
"finish-args" : [
14+
"--socket=fallback-x11",
15+
"--socket=wayland",
16+
"--device=dri",
17+
"--share=network"
18+
],
19+
"build-options" : {
20+
"append-path" : "/usr/lib/sdk/rust-stable/bin",
21+
"build-args" : [
22+
"--share=network"
23+
],
24+
"env" : { }
25+
},
26+
"modules" : [
27+
{
28+
"name" : "libsass",
29+
"cleanup" : [
30+
"*"
31+
],
32+
"sources" : [
33+
{
34+
"type" : "archive",
35+
"url" : "https://github.com/sass/libsass/archive/3.6.4.tar.gz",
36+
"sha256" : "f9484d9a6df60576e791566eab2f757a97fd414fce01dd41fc0a693ea5db2889"
37+
},
38+
{
39+
"type" : "script",
40+
"dest-filename" : "autogen.sh",
41+
"commands" : [
42+
"autoreconf -si"
43+
]
44+
}
45+
]
46+
},
47+
{
48+
"name" : "sassc",
49+
"cleanup" : [
50+
"*"
51+
],
52+
"sources" : [
53+
{
54+
"type" : "archive",
55+
"url" : "https://github.com/sass/sassc/archive/3.6.1.tar.gz",
56+
"sha256" : "8cee391c49a102b4464f86fc40c4ceac3a2ada52a89c4c933d8348e3e4542a60"
57+
},
58+
{
59+
"type" : "script",
60+
"dest-filename" : "autogen.sh",
61+
"commands" : [
62+
"autoreconf -si"
63+
]
64+
}
65+
]
66+
},
67+
{
68+
"name" : "libadwaita",
69+
"buildsystem" : "meson",
70+
"config-opts" : [
71+
"-Dgtk_doc=false",
72+
"-Dtests=false",
73+
"-Dexamples=true",
74+
"-Dvapi=false",
75+
"-Dglade_catalog=disabled"
76+
],
77+
"sources" : [
78+
{
79+
"type" : "git",
80+
"url" : "https://gitlab.gnome.org/GNOME/libadwaita.git",
81+
"branch" : "main"
82+
}
83+
]
84+
},
85+
{
86+
"name" : "Geopard",
87+
"buildsystem" : "meson",
88+
"config-opts" : [
89+
],
90+
"sources" : [
91+
{
92+
"type" : "git",
93+
"url" : "../",
94+
"branch": "master"
95+
}
96+
]
97+
}
98+
]
99+
}

data/com.ranfdev.Geopard.metainfo.xml.in.in

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!-- Lorenzo Miglietta 2020 <[email protected]> -->
2+
<!-- Lorenzo Miglietta 2022 <[email protected]> -->
33
<component type="desktop-application">
44
<id>@app-id@</id>
55
<metadata_license>CC0</metadata_license>
@@ -14,6 +14,13 @@
1414
<url type="bugtracker">https://github.com/ranfdev/Geopard/issues/</url>
1515
<content_rating type="oars-1.0" />
1616
<releases>
17+
<release version="1.0.0" date="2022-04-29">
18+
First release on flathub! You get all the most important features:
19+
- colors
20+
- caching
21+
- search
22+
:D
23+
</release>
1724
<release version="1.0.0-alpha" date="2021-04-01">
1825
This is the first working flatpak release. Some features (colors, caching)
1926
are missing.

src/window.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ impl Window {
165165
self_action!(self, "about", present_about);
166166
self_action!(self, "focus-tab-previous", focus_tab_previous);
167167
self_action!(self, "focus-tab-next", focus_tab_next);
168+
self_action!(self, "donate", donate);
168169

169170
let act_open_page = gio::SimpleAction::new("open-omni", Some(glib::VariantTy::STRING));
170171
act_open_page.connect_activate(
@@ -448,7 +449,12 @@ impl Window {
448449
fn present_shortcuts(&self) {
449450
gtk::Builder::from_resource("/com/ranfdev/Geopard/ui/shortcuts.ui");
450451
}
451-
fn present_about(&self) {}
452+
fn present_about(&self) {
453+
self.open_url_str("about://help");
454+
}
455+
fn donate(&self) {
456+
gtk::show_uri(None::<&gtk::Window>, "https://github.com/sponsors/ranfdev", 0);
457+
}
452458
fn focus_tab_next(&self) {
453459
let imp = self.imp();
454460
imp.tab_view.select_next_page();

0 commit comments

Comments
 (0)