From d5b06ff7fad613b9de896f8597a6c4ac7d46161a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 22 Apr 2020 08:58:07 -0600 Subject: [PATCH] Fix macOS package creation. --- scripts/pp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/pp b/scripts/pp index e30785d94..4e9f199d1 100755 --- a/scripts/pp +++ b/scripts/pp @@ -1,6 +1,6 @@ #!/bin/sh # Copyright 2020 One Identity LLC. ALL RIGHTS RESERVED -pp_revision="20200421" +pp_revision="20200422" # Copyright 2018 One Identity LLC. ALL RIGHTS RESERVED. # # Redistribution and use in source and binary forms, with or without @@ -7340,7 +7340,8 @@ pp_backend_macos_flat () { # build the flat package layout pkgdir=$pp_wrkdir/pkg - bundledir=$pp_wrkdir/pkg/$name-${version}.pkg + pkgfile=$name-$version.pkg + bundledir=$pp_wrkdir/pkg/$pkgfile Resources=$pkgdir/Resources lprojdir=$Resources/en.lproj mkdir $pkgdir $bundledir $Resources $lprojdir || @@ -7389,7 +7390,7 @@ pp_backend_macos_flat () { - #$name.pkg + #$pkgfile . @@ -7504,7 +7505,7 @@ pp_backend_macos_flat () { "10.5"*) ;; *) xar_flags="$xar_flags --distribution";; esac - (cd $pkgdir && /usr/bin/xar $xar_flags -cf "../$name-$version.pkg" *) + (cd $pkgdir && /usr/bin/xar $xar_flags -cf "../$pkgfile" *) echo "version=$version" > $name.uninstall }