safing-portmaster/packaging/linux
Alexandr Stelnykovych e1475a1a3e
Some checks failed
Release v2.X / Prep (push) Waiting to run
Release v2.X / Installer linux (push) Blocked by required conditions
Release v2.X / Installer windows (push) Blocked by required conditions
Tauri / Build (push) Has been cancelled
Tauri / Linter (push) Has been cancelled
feat(build): add script to build Tauri application for Portmaster on Linux
2025-12-08 18:19:56 +02:00
..
dev_helpers feat(build): add script to build Tauri application for Portmaster on Linux 2025-12-08 18:19:56 +02:00
portmaster-autostart.desktop Finish earthfile and add linux packaging assets 2024-03-27 12:51:54 +01:00
portmaster.desktop [packaging] (Linux) fix: Incorrect Portmaster icon on task bar 2025-04-21 16:38:35 +03:00
portmaster.service fix: correct ExecStopPost command syntax in portmaster.service 2025-10-03 12:31:08 +03:00
postinst [packaging] fix: remove leftover installer migration artifacts 2025-04-03 17:45:11 +03:00
postrm [packaging] Fix: Linux installers (migration/update/removal) 2025-03-25 14:30:46 +00:00
readme.md [packaging] Fix: Linux installers (migration/update/removal) 2025-03-25 14:30:46 +00:00

Installation scripts order

Execution order of installation scripts (preInstallScript, preRemoveScript, postInstallScript, postRemoveScript) is different for DEB and RPM packages. NOTE! 'remove' scripts is using from old version!

DEB scripts order

Useful link: https://wiki.debian.org/MaintainerScripts

DEB (apt) Install v2.2.2:
   [*] Before install (2.2.2 : deb : install)
   [*] After  install (2.2.2 : deb : configure)

DEB (apt) Upgrade v1.1.1 -> v2.2.2:
   [*] Before remove  (1.1.1 : deb : upgrade)
   [*] Before install (2.2.2 : deb : upgrade)
   [*] After  remove  (1.1.1 : deb : upgrade)
   [*] After  install (2.2.2 : deb : configure)

 DEB (apt) Remove:
   [*] Before remove  (1.1.1 : deb : remove)
   [*] After  remove  (1.1.1 : deb : remove)

RPM scripts order

Useful link: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/

When scriptlets are called, they will be supplied with an argument. This argument, accessed via $1 (for shell scripts) is the number of packages of this name which will be left on the system when the action completes.

 RPM (dnf) install:
   [*] Before install (2.2.2 : rpm : 1)
   [*] After  install (2.2.2 : rpm : 1)

 RPM (dnf) upgrade:
   [*] Before install (2.2.2 : rpm : 2)
   [*] After  install (2.2.2 : rpm : 2)
   [*] Before remove  (1.1.1 : rpm : 1)
   [*] After  remove  (1.1.1 : rpm : 1)

 RPM (dnf) remove:
   [*] Before remove  (2.2.2 : rpm : 0)
   [*] After  remove  (2.2.2 : rpm : 0)