Skip to content

Commit c753545

Browse files
author
Ayla Khan
committed
Move tmp package out of package root directory.
1 parent ce6bfdb commit c753545

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/CMake/Scripts/repair_package.sh.in

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
seg3dbuild_dir=@CMAKE_BINARY_DIR@
4+
productbuild_dir=@PKG_BUILD_DIR@
45
productroot_dir=@PKG_ROOT_DIR@
56

67
if [[ ! -e $productroot_dir ]]; then
@@ -13,9 +14,9 @@ fi
1314
--component-plist $seg3dbuild_dir/@[email protected] \
1415
--install-location /Applications $seg3dbuild_dir/@[email protected]
1516
@PRODUCTBUILD_EXE@ --distribution $seg3dbuild_dir/CPack.Distribution.dist \
16-
--package-path $productroot_dir $productroot_dir/tmp.pkg
17+
--package-path $productroot_dir $productbuild_dir/tmp.pkg
1718
# Tip: pkgutil --expand can be used to debug package building
18-
@PKGUTIL_EXE@ --expand $productroot_dir/tmp.pkg $productroot_dir/tmp
19-
@PKGUTIL_EXE@ --flatten $productroot_dir/tmp $seg3dbuild_dir/@[email protected]
19+
@PKGUTIL_EXE@ --expand $productbuild_dir/tmp.pkg $productbuild_dir/tmp
20+
@PKGUTIL_EXE@ --flatten $productbuild_dir/tmp $seg3dbuild_dir/@[email protected]
2021
rm -f $seg3dbuild_dir/@[email protected] $seg3dbuild_dir/@[email protected]
21-
rm -Rf $productroot_dir/tmp
22+
rm -Rf $productbuild_dir/tmp

0 commit comments

Comments
 (0)