Skip to content

Commit

Permalink
Fix lints, fix GTK deprecation and release 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
martinber committed Nov 30, 2023
1 parent 5d6c7e4 commit 48a9eb8
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "noaa-apt"
version = "1.4.0"
version = "1.4.1"
authors = ["Martin Bernardi <[email protected]>"]
edition = "2018"
build = "src/build.rs"
Expand Down
11 changes: 11 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> Wed, 29 Nov 2023 21:55:33 -0300

noaa-apt (1.4.0-1) testing; urgency=medium

* New false color method based on palettes.
Expand Down
18 changes: 9 additions & 9 deletions docs/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs/version_check
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.0
1.4.1
2 changes: 1 addition & 1 deletion src/gui/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/gui/work.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion src/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
8 changes: 4 additions & 4 deletions src/program.rc
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
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
BLOCK "040904E4"
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"
Expand Down

0 comments on commit 48a9eb8

Please sign in to comment.