Skip to content

Commit

Permalink
Added LibMedium
Browse files Browse the repository at this point in the history
Signed-off-by: ManeraKai <[email protected]>
  • Loading branch information
ManeraKai committed Apr 20, 2024
1 parent 05fc58a commit 6ff6da6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Available Frontends:
- [Dumb](https://github.com/rramiachraf/dumb)
- [GotHub](https://codeberg.org/gothub/gothub)
- [Neuters](https://github.com/HookedBehemoth/neuters)
- [LibMedium](https://github.com/realaravinth/libmedium)

<!--
- [BreezeWiki](https://breezewiki.com)
- [Scribe](https://sr.ht/~edwardloveall/Scribe/)
-->

For Managing the frontends:
- Web Server: [Caddy](https://caddyserver.com/)
Expand Down
3 changes: 3 additions & 0 deletions src-tauri/src/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ http://gothub.localhost:8080 {
http://neuters.localhost:8080 {
reverse_proxy localhost:10049
}
http://libmedium.localhost:8080 {
reverse_proxy localhost:10050
}
16 changes: 15 additions & 1 deletion src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ pub async fn run_frontend(app_handle: tauri::AppHandle, frontend: &str) -> Resul
("GOTHUB_PORT", "10048"),
],
))
} "neuters" => {
}
"neuters" => {
return Ok(run_frontend_general(
app_handle,
frontend,
Expand All @@ -274,6 +275,19 @@ pub async fn run_frontend(app_handle: tauri::AppHandle, frontend: &str) -> Resul
&[],
))
}
"libmedium" => {
return Ok(run_frontend_general(
app_handle,
frontend,
if env::consts::OS == "linux" {
"./libmedium_linux_x86_64"
} else {
"\\.libmedium_windows_x86_64.exe"
},
&[],
&[("LIBMEDIUM", "config.toml")],
))
}
_ => {}
}
return Ok("downloaded".into());
Expand Down
4 changes: 4 additions & 0 deletions src/frontends.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@
"neuters": {
"name": "Neuters",
"icon": "reuters-icon.svg"
},
"libmedium": {
"name": "LibMedium",
"icon": "medium-icon.svg"
}
}

0 comments on commit 6ff6da6

Please sign in to comment.