Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/verify-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ set -euo pipefail
# launch it).
# With --host-tools it also runs Lithe's official package verifier and, when
# the package is signed, checks the publisher signature.
# Everything it reports goes to stderr, so a caller that captures stdout (as
# scripts/build-package.sh's callers capture the package path) gets nothing
# from it.

ROOT_DIR="${0:A:h:h}"
PLUGIN_ID="dev.lithe.plugin.java-support"
Expand Down Expand Up @@ -97,9 +100,9 @@ if [[ "$REQUIRE_SIGNATURE" == true && ! -f "$signature" ]]; then
fail "the package is not publisher-signed"
fi
if [[ -n "$HOST_TOOLS" ]]; then
"$HOST_TOOLS/LitheOfficialPluginVerifier" "$PACKAGE"
"$HOST_TOOLS/LitheOfficialPluginVerifier" "$PACKAGE" >&2
if [[ -f "$signature" ]]; then
"$HOST_TOOLS/LithePluginPackageSigner" --verify "$PACKAGE"
"$HOST_TOOLS/LithePluginPackageSigner" --verify "$PACKAGE" >&2
fi
fi
print -u2 -- "Verified Java Support package $PACKAGE ($ARCH)"
Loading