summaryrefslogtreecommitdiff
path: root/src/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.sh')
-rwxr-xr-xsrc/build.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/build.sh b/src/build.sh
index b4e8f6d..a01368b 100755
--- a/src/build.sh
+++ b/src/build.sh
@@ -23,6 +23,18 @@ build_package () {
exported_pkg=$(find $XIB_EXPORT -wholename "*/$name.xipkg" | head -1 | xargs realpath)
if [ -f $exported_pkg ]; then
tar -h --no-overwrite-dir -xf $exported_pkg -C $XIB_CHROOT
+
+ postinstall="$XIB_CHROOT/var/lib/xipkg/postinstall"
+ if [ -d $postinstall ]; then
+ for file in "$postinstall/*.sh"; do
+ f=$(basename $file)
+ chmod 755 $file
+ xichroot "$XIB_CHROOT" "/var/lib/xipkg/postinstall/$f"
+ rm $file
+ printf "$PASS run postinstall for $f!\n"
+ done
+ rmdir $postinstall
+ fi
fi
printf "$PASS installed to chroot!\n"