diff --git a/Cargo.lock b/Cargo.lock index 9ce8b22..80b2846 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1115,7 +1115,7 @@ dependencies = [ [[package]] name = "noaa-apt" -version = "1.4.0" +version = "1.4.1" dependencies = [ "approx", "argparse", diff --git a/Cargo.toml b/Cargo.toml index a7e6719..97305cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "noaa-apt" -version = "1.4.0" +version = "1.4.1" authors = ["Martin Bernardi "] edition = "2018" build = "src/build.rs" diff --git a/debian/changelog b/debian/changelog index 424f016..13f4776 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +noaa-apt (1.4.1-1) testing; urgency=medium + + * Add a more descriptive error message when loading files with incorrect + lengths in the header. + * Added the run-noaa-apt.sh script to all builds for launching the program + using double-click. + * Added a simple manpage for the Debian package version. + * Updated dependencies. + + -- Martin Bernardi Wed, 29 Nov 2023 21:55:33 -0300 + noaa-apt (1.4.0-1) testing; urgency=medium * New false color method based on palettes. diff --git a/docs/download.md b/docs/download.md index 02a87cc..9b1a683 100644 --- a/docs/download.md +++ b/docs/download.md @@ -29,7 +29,7 @@ After downloading and installing, visit [the Usage page](./usage.html). an "Install" button. Otherwise open a terminal and install it by running: ``` - sudo apt install ~/Downloads/noaa-apt_1.4.0-1_amd64.deb + sudo apt install ~/Downloads/noaa-apt_1.4.1-1_amd64.deb ``` To run, search for noaa-apt in your installed programs or run `noaa-apt` in @@ -139,11 +139,11 @@ installed what you need: My builds use a statically linked libssl, so you don't need libssl unless you compiled noaa-apt yourself. -[amd64_deb]: https://github.com/martinber/noaa-apt/releases/download/v1.4.0/noaa-apt_1.4.0-1_amd64.deb -[x86_64_windows_gnu_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.0/noaa-apt-1.4.0-x86_64-windows-gnu.zip -[x86_64_linux_gnu_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.0/noaa-apt-1.4.0-x86_64-linux-gnu.zip -[x86_64_linux_gnu_nogui_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.0/noaa-apt-1.4.0-x86_64-linux-gnu-nogui.zip -[armv7_linux_gnueabihf_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.0/noaa-apt-1.4.0-armv7-linux-gnueabihf.zip -[armv7_linux_gnueabihf_nogui_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.0/noaa-apt-1.4.0-armv7-linux-gnueabihf-nogui.zip -[aarch64_linux_gnu_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.0/noaa-apt-1.4.0-aarch64-linux-gnu.zip -[aarch64_linux_gnu_nogui_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.0/noaa-apt-1.4.0-aarch64-linux-gnu-nogui.zip +[amd64_deb]: https://github.com/martinber/noaa-apt/releases/download/v1.4.1/noaa-apt_1.4.1-1_amd64.deb +[x86_64_windows_gnu_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.1/noaa-apt-1.4.1-x86_64-windows-gnu.zip +[x86_64_linux_gnu_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.1/noaa-apt-1.4.1-x86_64-linux-gnu.zip +[x86_64_linux_gnu_nogui_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.1/noaa-apt-1.4.1-x86_64-linux-gnu-nogui.zip +[armv7_linux_gnueabihf_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.1/noaa-apt-1.4.1-armv7-linux-gnueabihf.zip +[armv7_linux_gnueabihf_nogui_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.1/noaa-apt-1.4.1-armv7-linux-gnueabihf-nogui.zip +[aarch64_linux_gnu_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.1/noaa-apt-1.4.1-aarch64-linux-gnu.zip +[aarch64_linux_gnu_nogui_zip]: https://github.com/martinber/noaa-apt/releases/download/v1.4.1/noaa-apt-1.4.1-aarch64-linux-gnu-nogui.zip diff --git a/docs/version_check b/docs/version_check index 88c5fb8..347f583 100644 --- a/docs/version_check +++ b/docs/version_check @@ -1 +1 @@ -1.4.0 +1.4.1 diff --git a/src/gui/gui.rs b/src/gui/gui.rs index cd4c635..015579d 100644 --- a/src/gui/gui.rs +++ b/src/gui/gui.rs @@ -582,7 +582,7 @@ fn build_system_menu(widgets: &Widgets) { { dialog.connect_activate_link(|dialog, url| { misc::open_in_browser(dialog, url).expect("Failed to open link"); - return gtk::Inhibit(true); // Override `show_uri_on_window` + return Propagation::Stop; // Override `show_uri_on_window` }); } diff --git a/src/gui/work.rs b/src/gui/work.rs index 244acf1..4c53627 100644 --- a/src/gui/work.rs +++ b/src/gui/work.rs @@ -66,7 +66,7 @@ pub fn decode() { let local_time = time.with_timezone(&chrono::Local); // GTK counts months from 0 to 11. Years and days are fine widgets.p_calendar.select_month( - local_time.month0() as u32, + local_time.month0(), local_time.year() as u32, ); widgets.p_calendar.select_day(local_time.day()); @@ -91,7 +91,7 @@ pub fn decode() { let local_time = time.with_timezone(&chrono::Local); // GTK counts months from 0 to 11. Years and days are fine widgets.p_calendar.select_month( - local_time.month0() as u32, + local_time.month0(), local_time.year() as u32, ); widgets.p_calendar.select_day(local_time.day()); diff --git a/src/misc.rs b/src/misc.rs index e5a951d..1fa90da 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -84,7 +84,7 @@ fn fetch_versions(current: &str) -> err::Result<(Version, Version)> { "https://noaa-apt.mbernardi.com.ar/version_check?{}", current ); - let latest = reqwest::blocking::get(&addr)?.text()?; + let latest = reqwest::blocking::get(addr)?.text()?; let latest_version = Version::parse(latest.trim_end_matches('\n'))?; Ok((current_version, latest_version)) } diff --git a/src/program.rc b/src/program.rc index 474c7f7..9304401 100644 --- a/src/program.rc +++ b/src/program.rc @@ -1,7 +1,7 @@ id ICON "icon.ico" 1 VERSIONINFO -FILEVERSION 1,4,0,0 -PRODUCTVERSION 1,4,0,0 +FILEVERSION 1,4,1,0 +PRODUCTVERSION 1,4,1,0 BEGIN BLOCK "StringFileInfo" BEGIN @@ -9,12 +9,12 @@ BEGIN BEGIN VALUE "CompanyName", "Martin Bernardi" VALUE "FileDescription", "noaa-apt image decoder" - VALUE "FileVersion", "1.4.0" + VALUE "FileVersion", "1.4.1" VALUE "InternalName", "noaa-apt" VALUE "LegalCopyright", "Martin Bernardi" VALUE "OriginalFilename", "noaa-apt.exe" VALUE "ProductName", "noaa-apt" - VALUE "ProductVersion", "1.4.0" + VALUE "ProductVersion", "1.4.1" END END BLOCK "VarFileInfo"