Skip to content

fix linux update flow - #346

Merged
maathimself merged 3 commits into
maathimself:mainfrom
dcoffin88:fix-linux-update-flow
Aug 8, 2026
Merged

fix linux update flow#346
maathimself merged 3 commits into
maathimself:mainfrom
dcoffin88:fix-linux-update-flow

Conversation

@dcoffin88

Copy link
Copy Markdown
Contributor

Summary

This pull request addresses a bug identified during testing for Native apps: security hardening before the first signed release #301.

The downloaded .deb and .rpm packages open successfully in the system package installer. However, Ubuntu App Center and Fedora Software treat MailFlow as already installed and expose only an Uninstall or Remove action. They do not provide an Install or Update action for the newer local package.

The package metadata itself is correct. On Ubuntu/Fedora, the upgrade succeeds when run through APT/DNF:

APT/DNF correctly detects it as an upgrade from version 0.0.1 to version 0.0.2.

Changes

The Linux update flow has been changed from an Install button to an installation-instructions message.

The message provides a Copy install command button, so the user can paste the verified command into a terminal and complete the update manually.

For Debian/Ubuntu:

sudo apt install "$HOME/Downloads/MailFlow-0.0.0-amd64.deb"

For Fedora/RHEL:

sudo dnf install "$HOME/Downloads/MailFlow-0.0.0-x86_64.rpm"

MailFlow downloads and verifies the package but does not automatically invoke sudo, apt, dnf, dpkg, or rpm.

This avoids unattended privilege elevation while still providing users with a clear update path when the graphical package installer does not support upgrading a local package.

Testing

[x] Tested the .deb update flow on Ubuntu.
[x] Tested the .rpm update flow on Fedora.
[x] Confirmed the installation command is copied correctly.
[x] Confirmed APT recognizes the .deb as an upgrade.
[x] Confirmed DNF recognizes the .rpm as an upgrade.
[x] Confirmed MailFlow does not automatically invoke privileged package-manager commands.


Contributor License Agreement

By submitting this pull request I confirm that:

  • I have read and agree to the Contributor License Agreement.
  • My contribution is my own original work (or I have identified any
    third-party material and confirmed it is compatible with the CLA).
  • I have the right to submit this contribution under the terms of the CLA.

@maathimself maathimself left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@maathimself
maathimself merged commit f5d5df8 into maathimself:main Aug 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants