We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04ad263 + 946ae32 commit f3bc3abCopy full SHA for f3bc3ab
package.json
@@ -114,7 +114,8 @@
114
]
115
},
116
"rpm": {
117
- "artifactName": "HttpToolkit-${version}.rpm"
+ "artifactName": "HttpToolkit-${version}.rpm",
118
+ "afterRemove": "scripts/post-uninstall-rpm.sh"
119
120
"appImage": {
121
"artifactName": "HttpToolkit-${version}.AppImage"
scripts/post-uninstall-rpm.sh
@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+
3
+# This check works only for RPMs
4
+if [ $1 -ge 1 ]; then
5
+ # Package upgrade, do not uninstall
6
+ exit 0
7
+fi
8
9
+# Delete the link to the binary
10
+if type update-alternatives >/dev/null 2>&1; then
11
+ update-alternatives --remove "httptoolkit" "/opt/HTTP Toolkit/httptoolkit"
12
+else
13
+ rm -f "/usr/bin/httptoolkit"
14
0 commit comments