Skip to content

Commit a25c423

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

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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=$(grep "^pkg_name: .*$" ${CONSTRUCT_YML} | cut -d' ' -f2 | tr '[:upper:]' '[:lower:]' | tr -d '"')
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)