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:
23
tray/ant/apple/apple-postinstall.sh.in
Normal file
23
tray/ant/apple/apple-postinstall.sh.in
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Halt on first error
|
||||
set -e
|
||||
|
||||
# Get working directory
|
||||
DIR=$(cd "$(dirname "$0")" && pwd)
|
||||
pushd "$DIR/payload/${project.name}.app/Contents/MacOS/"
|
||||
|
||||
./"${project.name}" install >> "${install.log}" 2>&1
|
||||
popd
|
||||
|
||||
# Use install target from pkgbuild, an undocumented feature; fallback on sane location
|
||||
if [ -n "$2" ]; then
|
||||
pushd "$2/Contents/MacOS/"
|
||||
else
|
||||
pushd "/Applications/${project.name}.app/Contents/MacOS/"
|
||||
fi
|
||||
|
||||
./"${project.name}" certgen >> "${install.log}" 2>&1
|
||||
|
||||
# Start qz by calling open on the .app as an ordinary user
|
||||
su "$USER" -c "open ../../" || true
|
||||
Reference in New Issue
Block a user