diff --git a/Cargo.lock b/Cargo.lock index 16710af..f520a90 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1732,7 +1732,7 @@ dependencies = [ [[package]] name = "hacker-news-iced" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anyhow", "app_dirs2", diff --git a/assets/io.github.darrellroberts.hacker-news.metainfo.xml b/assets/io.github.darrellroberts.hacker-news.metainfo.xml new file mode 100644 index 0000000..551be48 --- /dev/null +++ b/assets/io.github.darrellroberts.hacker-news.metainfo.xml @@ -0,0 +1,37 @@ + + + io.github.darrellroberts.hacker-news + + Hacker News + Hacker News Reader + + MIT + MIT-open-group + + + News + + + + Darrell Roberts + + + + + https://github.com/darrell-roberts/hacker-news + + + A Hacker News reader written in Rust using the iced GUI library. + View the top stories, new stories, and best stories from Hacker News. + + + + io.github.darrellroberts.hacker-news.desktop + + + + + + diff --git a/hacker-news-iced/Cargo.toml b/hacker-news-iced/Cargo.toml index 238fb9f..8654301 100644 --- a/hacker-news-iced/Cargo.toml +++ b/hacker-news-iced/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hacker-news-iced" -version = "0.1.3" +version = "0.1.4" license.workspace = true edition.workspace = true description = "Hacker News Desktop Reader" diff --git a/hacker-news-iced/src/app.rs b/hacker-news-iced/src/app.rs index 66067d9..66afc7b 100644 --- a/hacker-news-iced/src/app.rs +++ b/hacker-news-iced/src/app.rs @@ -175,7 +175,7 @@ pub fn update(app: &mut App, message: AppMsg) -> Task { Task::none() } AppMsg::OpenLink { url, item_id } => { - open::with_detached(url, "firefox") + open::that(url) .inspect_err(|err| { error!("Failed to open url {err}"); }) diff --git a/io.github.darrellroberts.hacker-news.yml b/io.github.darrellroberts.hacker-news.yml index 0bb657e..c9f8c27 100644 --- a/io.github.darrellroberts.hacker-news.yml +++ b/io.github.darrellroberts.hacker-news.yml @@ -25,7 +25,10 @@ modules: build-commands: - mkdir -p /app/share - install -Dm644 assets/io.github.darrellroberts.hacker-news.desktop -t /app/share/applications/ + - install -Dm644 assets/io.github.darrellroberts.hacker-news.metainfo.xml -t /app/share/metainfo/ - tar zxvf assets/icons.tar.gz -C /app/share + # - unzip -o UbuntuSans.zip -d /app/share/fonts + # - unzip -o Ubuntu.zip -d /app/share/fonts - cargo --offline fetch --manifest-path Cargo.toml - cargo --offline build --release - install -Dm755 ./target/release/hacker-news-iced -t /app/bin/ @@ -33,3 +36,9 @@ modules: - type: dir path: . - cargo-sources.json + # - type: file + # url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/UbuntuSans.zip + # sha256: 65d74bd6d3b5d4447fb6abe8da009fcc133a888a29b27be46baec98872f5dee9 + # - type: file + # url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/Ubuntu.zip + # sha256: aa64690dab5b4f5cb6f0223999d44ca30fa51d837d83fcd86eacec527ec4f598
+ A Hacker News reader written in Rust using the iced GUI library. + View the top stories, new stories, and best stories from Hacker News. +