UMTS at Teleco 1 неделя назад
Родитель
Сommit
c702ff9c87
4 измененных файлов с 26 добавлено и 11 удалено
  1. 3 2
      Cargo.toml
  2. 6 8
      README.md
  3. BIN
      dist/AppIcon.png
  4. 17 1
      src/app.rs

+ 3 - 2
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 [package]
 name = "hoardom"
 name = "hoardom"
-version = "1.1.2"
+version = "1.1.3"
 edition = "2021"
 edition = "2021"
 description = "Domain hoarding made less painful"
 description = "Domain hoarding made less painful"
 default-run = "hoardom"
 default-run = "hoardom"
@@ -22,7 +22,7 @@ builtin-whois = []
 # native gui wrapper binary (hoardom-app)
 # native gui wrapper binary (hoardom-app)
 # spawns hoardom --tui in a pty and renders it in its own window
 # spawns hoardom --tui in a pty and renders it in its own window
 # so it shows up as its own app with its own dock icon
 # so it shows up as its own app with its own dock icon
-gui = ["dep:eframe", "dep:portable-pty", "dep:vte"]
+gui = ["dep:eframe", "dep:portable-pty", "dep:vte", "dep:image"]
 
 
 # Configurable values baked into the binary at compile time via build.rs
 # Configurable values baked into the binary at compile time via build.rs
 [package.metadata.hoardom]
 [package.metadata.hoardom]
@@ -49,6 +49,7 @@ futures = "0.3"
 eframe = { version = "0.30", optional = true }
 eframe = { version = "0.30", optional = true }
 portable-pty = { version = "0.8", optional = true }
 portable-pty = { version = "0.8", optional = true }
 vte = { version = "0.14", optional = true }
 vte = { version = "0.14", optional = true }
+image = { version = "0.25", optional = true, default-features = false, features = ["png"] }
 
 
 [[bin]]
 [[bin]]
 name = "hoardom"
 name = "hoardom"

+ 6 - 8
README.md

@@ -1,22 +1,20 @@
-# Multithreaded Domain Hoarding !?
+# HoarDom
+Allows you to HOARd DOMains but with alot less pain associated with it.
 
 
 > "How to get my IP unbanned by Whois servers" <br>
 > "How to get my IP unbanned by Whois servers" <br>
-> -- You at 3am after using this tool for a few hours
+> -- Probably you after using this tool.
+
 
 
-## What even is `hoardom`? (tldr)
 
 
-The work of art you see below is a tool with which you will be able to achieve the pinacle of hoarding and money wasting when commiting to once again falling down the Domain Hoarding Hole! <br>(
-for example when gambling online just isnt doing it for you anymore)
 
 
-Seriously for once : It is meant to atleast make the journey you'll have loosing your mind finding a banger domain more tolerable than siting on your computer until 5am scrolling through domain registrars crappy ass domain look up webpanel just to know whats not taken yet.
 
 
 ## Lates Update : tool now has a wrapper app for desktop* folks!
 ## Lates Update : tool now has a wrapper app for desktop* folks!
 (No windows support only unix.)
 (No windows support only unix.)
 Use the new make file to either `make pkg` for macass or `make deb` for debian systems. If you are running gentoo or anything else just the usual  `make install`, to uninstall do `make uninstall` obv. (both install and uninstall will require le sudo or root)
 Use the new make file to either `make pkg` for macass or `make deb` for debian systems. If you are running gentoo or anything else just the usual  `make install`, to uninstall do `make uninstall` obv. (both install and uninstall will require le sudo or root)
 
 
-![CUCKKOM](https://git.teleco.ch/crt/hoardom.git/plain/doc/pics/image.png?h=main)
-
+![CUCKKOM](https://git.teleco.ch/crt/hoardom.git/plain/doc/pics/image.png?h=main =25%x)
 
 
+## Quick Q & A `hoardom`? (tldr)
 
 
 
 
 
 

BIN
dist/AppIcon.png


+ 17 - 1
src/app.rs

@@ -1028,6 +1028,21 @@ fn find_hoardom() -> PathBuf {
     PathBuf::from("hoardom")
     PathBuf::from("hoardom")
 }
 }
 
 
+// ----- load app icon -----
+
+fn load_icon() -> egui::IconData {
+    let png_bytes = include_bytes!("../dist/AppIcon.png");
+    let img = image::load_from_memory_with_format(png_bytes, image::ImageFormat::Png)
+        .expect("failed to decode embedded icon")
+        .into_rgba8();
+    let (w, h) = img.dimensions();
+    egui::IconData {
+        rgba: img.into_raw(),
+        width: w,
+        height: h,
+    }
+}
+
 // ----- main -----
 // ----- main -----
 
 
 fn main() -> eframe::Result<()> {
 fn main() -> eframe::Result<()> {
@@ -1124,7 +1139,8 @@ fn main() -> eframe::Result<()> {
         viewport: egui::ViewportBuilder::default()
         viewport: egui::ViewportBuilder::default()
             .with_title("hoardom")
             .with_title("hoardom")
             .with_inner_size([est_width, est_height])
             .with_inner_size([est_width, est_height])
-            .with_min_inner_size([300.0, 200.0]),
+            .with_min_inner_size([300.0, 200.0])
+            .with_icon(load_icon()),
         ..Default::default()
         ..Default::default()
     };
     };