Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 6ff6da6

Browse files
committed
Added LibMedium
Signed-off-by: ManeraKai <manerakai@protonmail.com>
1 parent 05fc58a commit 6ff6da6

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ Available Frontends:
1313
- [Dumb](https://github.com/rramiachraf/dumb)
1414
- [GotHub](https://codeberg.org/gothub/gothub)
1515
- [Neuters](https://github.com/HookedBehemoth/neuters)
16+
- [LibMedium](https://github.com/realaravinth/libmedium)
17+
18+
<!--
19+
- [BreezeWiki](https://breezewiki.com)
20+
- [Scribe](https://sr.ht/~edwardloveall/Scribe/)
21+
-->
1622

1723
For Managing the frontends:
1824
- Web Server: [Caddy](https://caddyserver.com/)

src-tauri/src/Caddyfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ http://gothub.localhost:8080 {
2828
http://neuters.localhost:8080 {
2929
reverse_proxy localhost:10049
3030
}
31+
http://libmedium.localhost:8080 {
32+
reverse_proxy localhost:10050
33+
}

src-tauri/src/commands.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ pub async fn run_frontend(app_handle: tauri::AppHandle, frontend: &str) -> Resul
261261
("GOTHUB_PORT", "10048"),
262262
],
263263
))
264-
} "neuters" => {
264+
}
265+
"neuters" => {
265266
return Ok(run_frontend_general(
266267
app_handle,
267268
frontend,
@@ -274,6 +275,19 @@ pub async fn run_frontend(app_handle: tauri::AppHandle, frontend: &str) -> Resul
274275
&[],
275276
))
276277
}
278+
"libmedium" => {
279+
return Ok(run_frontend_general(
280+
app_handle,
281+
frontend,
282+
if env::consts::OS == "linux" {
283+
"./libmedium_linux_x86_64"
284+
} else {
285+
"\\.libmedium_windows_x86_64.exe"
286+
},
287+
&[],
288+
&[("LIBMEDIUM", "config.toml")],
289+
))
290+
}
277291
_ => {}
278292
}
279293
return Ok("downloaded".into());

src/frontends.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@
2626
"neuters": {
2727
"name": "Neuters",
2828
"icon": "reuters-icon.svg"
29+
},
30+
"libmedium": {
31+
"name": "LibMedium",
32+
"icon": "medium-icon.svg"
2933
}
3034
}

0 commit comments

Comments
 (0)