Skip to content

Commit ad06ec8

Browse files
committed
Generalize pkg_name in installer signature.
1 parent 2fe9609 commit ad06ec8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/macos_check_installer_signature.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ if [[ "$GITHUB_EVENT_NAME" != "pull_request" ]]; then
77
fi
88
# Now extract the package and check that the _conda binary is
99
# properly signed as well
10-
pkgutil --expand-full ${PKG_INSTALLER_NAME} ./sp-extracted
11-
DIR="./sp-extracted/prepare_installation.pkg/Payload/.scientific-python"
10+
pkgutil --expand-full ${PKG_INSTALLER_NAME} ./pkg-extracted
11+
# Get pkg_name from construct.yaml file.
12+
cons_pkg_name=$(basename $PKG_INSTALL_PREFIX)
13+
DIR="./pkg-extracted/prepare_installation.pkg/Payload/${cons_pkg_name}"
1214
echo "Checking ${DIR} exists"
1315
test -d "$DIR"
1416
ls -al "$DIR"

0 commit comments

Comments
 (0)