DEB packaging of PZ Signer from ePUAP (including Java 9+ fixes)
Jacek Kowalski
2020-02-07 20280ea9a50e02b701155805d0f77b9fdd0d33fb
Force application language to pl

PZ Signer does not support languages other than Polish.
Attempt to run it in en_US locale fails with error:

Caused by: java.util.MissingResourceException: Can't find bundle for
base name application, locale en_US

This update sets JVM property user.language to pl

Closes #2
2 files modified
3 ■■■■ changed files
debian/rules 2 ●●● patch | view | raw | blame | history
pzsigner 1 ●●●● patch | view | raw | blame | history
debian/rules
@@ -3,7 +3,7 @@
NAME = pzsigner
VERSION = 1.0
PACKAGENAME = pzsigner
PACKAGEVERSION = $(VERSION)-3
PACKAGEVERSION = $(VERSION)-4
URL = "https://pz.gov.pl/PZ%20Signer/linux/x86"
BASENAME = pzsigner.zip
pzsigner
@@ -4,6 +4,7 @@
cd /opt/pzsigner
java -Dfile.encoding=UTF8 \
    -Duser.language=pl \
    "-Dpz.signer.pkcs11.libpath=${PKCS11_LIBRARY}" \
    -cp 'classes:lib/*' \
    com.pentacomp.signer.Application