-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move tmp package out of package root directory.
- Loading branch information
Ayla Khan
committed
Jun 29, 2017
1 parent
ce6bfdb
commit c753545
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
seg3dbuild_dir=@CMAKE_BINARY_DIR@ | ||
productbuild_dir=@PKG_BUILD_DIR@ | ||
productroot_dir=@PKG_ROOT_DIR@ | ||
|
||
if [[ ! -e $productroot_dir ]]; then | ||
|
@@ -13,9 +14,9 @@ fi | |
--component-plist $seg3dbuild_dir/@[email protected] \ | ||
--install-location /Applications $seg3dbuild_dir/@[email protected] | ||
@PRODUCTBUILD_EXE@ --distribution $seg3dbuild_dir/CPack.Distribution.dist \ | ||
--package-path $productroot_dir $productroot_dir/tmp.pkg | ||
--package-path $productroot_dir $productbuild_dir/tmp.pkg | ||
# Tip: pkgutil --expand can be used to debug package building | ||
@PKGUTIL_EXE@ --expand $productroot_dir/tmp.pkg $productroot_dir/tmp | ||
@PKGUTIL_EXE@ --flatten $productroot_dir/tmp $seg3dbuild_dir/@[email protected] | ||
@PKGUTIL_EXE@ --expand $productbuild_dir/tmp.pkg $productbuild_dir/tmp | ||
@PKGUTIL_EXE@ --flatten $productbuild_dir/tmp $seg3dbuild_dir/@[email protected] | ||
rm -f $seg3dbuild_dir/@[email protected] $seg3dbuild_dir/@[email protected] | ||
rm -Rf $productroot_dir/tmp | ||
rm -Rf $productbuild_dir/tmp |