Update packaging script

This commit is contained in:
Kevin Yue
2024-03-11 07:55:49 -04:00
parent e94661b213
commit 59dee3d767
5 changed files with 24 additions and 3 deletions

View File

@@ -12,8 +12,7 @@ Build-Depends: debhelper (>= 9),
libayatana-appindicator3-1,
gnome-keyring,
libwebkit2gtk-4.0-dev,
libopenconnect-dev (>= 8.20),
@RUST@
libopenconnect-dev (>= 8.20),@RUST@
Homepage: https://github.com/yuezk/GlobalProtect-openconnect
Package: globalprotect-openconnect

14
packaging/deb/postrm Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
case "$1" in
purge|remove|upgrade)
# Remove the gpgui binary downloaded at runtime
rm -f /usr/bin/gpgui
;;
*)
;;
esac
exit 0

View File

@@ -34,6 +34,9 @@ A GUI for GlobalProtect VPN, based on OpenConnect, supports the SSO authenticati
%prep
%setup
%postun
rm -f %{_bindir}/gpgui
%build
# The injected RUSTFLAGS could fail the build
unset RUSTFLAGS