Add custom QZ Tray fork with pairing key authentication
- Custom fork of QZ Tray 2.2.x with certificate validation bypassed - Implemented pairing key (HMAC) authentication as replacement - Modified files: PrintSocketClient.java (certificate check disabled) - New files: PairingAuth.java, PairingConfigDialog.java - Excluded build artifacts (out/, lib/javafx*) from repository - Library JARs included for dependency management
This commit is contained in:
38
tray/ant/unix/unix-uninstall.sh.in
Normal file
38
tray/ant/unix/unix-uninstall.sh.in
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Halt on first error
|
||||
set -e
|
||||
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run with root (sudo) privileges" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Get working directory
|
||||
DIR=$(cd "$(dirname "$0")" && pwd)
|
||||
pushd "$DIR"
|
||||
|
||||
echo "Running uninstall tasks..."
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
# Uninstall script is in "QZ Tray.app/Contents/Resources/uninstall"
|
||||
# Calculate the path to "QZ Tray.app"
|
||||
APP_DIR=$(cd "$(dirname "$0")/../.." && pwd)
|
||||
|
||||
if [[ "$APP_DIR" != *".app" ]]; then
|
||||
echo -e "\nMalformed app directory. Uninstallation of ${project.name} failed.\n"
|
||||
exit 1
|
||||
fi
|
||||
# Launcher script is in "QZ Tray.app/Contents/MacOS"
|
||||
"$APP_DIR/Contents/MacOS/${project.name}" uninstall
|
||||
else
|
||||
# Uninstall script is in root of app (e.g. "/opt/qz-tray")
|
||||
APP_DIR="$DIR"
|
||||
# Launcher script is adjacent to uninstall script
|
||||
"$APP_DIR/${project.filename}" uninstall
|
||||
fi
|
||||
|
||||
echo "Deleting files..."
|
||||
rm -rf "$APP_DIR"
|
||||
echo -e "\nUninstall of ${project.name} complete.\n"
|
||||
|
||||
popd &>/dev/null
|
||||
Reference in New Issue
Block a user