@@ -265,7 +265,7 @@ addTemplateScripts () {
265
265
echo " Error addTemplateScripts: template '$templateName ' doesn't exists" >&2 ; exit 1; }
266
266
267
267
# Copy files to destination
268
- rsync -pr --exclude=.svn --exclude=" *~" " $templateRootDir /" " $pkgRootDir /Scripts/"
268
+ rsync -pr --exclude=.svn --exclude=" *~" --exclude= " .DS_Store " " $templateRootDir /" " $pkgRootDir /Scripts/"
269
269
done
270
270
271
271
files=$( find " $pkgRootDir /Scripts/" -type f )
@@ -524,7 +524,7 @@ main ()
524
524
choiceId=" UEFI.only"
525
525
packageRefId=$( getPackageRefId " ${packagesidentity} " " ${choiceId} " )
526
526
mkdir -p ${PKG_BUILD_DIR} /${choiceId} /Root/EFI
527
- rsync -r --exclude=.svn --exclude=" *~" --exclude=' drivers*' \
527
+ rsync -r --exclude=.svn --exclude=" *~" --exclude=' drivers*' --exclude= ' .empty ' --exclude= ' .DS_Store ' \
528
528
${SRCROOT} /CloverV2/EFI/BOOT ${PKG_BUILD_DIR} /${choiceId} /Root/EFI/
529
529
addTemplateScripts --pkg-rootdir=" ${PKG_BUILD_DIR} /${choiceId} " \
530
530
--subst=" INSTALLER_CHOICE=$packageRefId " MarkChoice
630
630
--subst=" CLOVER_DRIVERS_LEGACY=$DRIVERS_LEGACY " \
631
631
--subst=" CLOVER_DRIVERS_UEFI=$DRIVERS_UEFI " \
632
632
${choiceId}
633
- rsync -r --exclude=.svn --exclude=" *~" --exclude=' drivers*' \
633
+ rsync -r --exclude=.svn --exclude=" *~" --exclude=' drivers*' --exclude= ' .empty ' --exclude= ' .DS_Store ' \
634
634
${SRCROOT} /CloverV2/EFI/BOOT ${PKG_BUILD_DIR} /${choiceId} /Root/EFI/
635
- rsync -r --exclude=.svn --exclude=" *~" --exclude=' drivers*' \
635
+ rsync -r --exclude=.svn --exclude=" *~" --exclude=' drivers*' --exclude= ' .empty ' --exclude= ' .DS_Store ' \
636
636
${SRCROOT} /CloverV2/EFI/CLOVER ${PKG_BUILD_DIR} /${choiceId} /Root/EFI/
637
637
638
638
# config.plist
@@ -1352,7 +1352,7 @@ if [[ ${NOEXTRAS} != *"Clover Themes"* ]]; then
1352
1352
local themeName=${themes[$i]##*/ }
1353
1353
[[ -n $( inArray " $themeName " ${specialThemes[@]} ) ]] && continue # it is a special theme
1354
1354
mkdir -p " ${PKG_BUILD_DIR} /${themeName} /Root/"
1355
- rsync -r --exclude=.svn --exclude=" *~" " ${themes[$i]} /" " ${PKG_BUILD_DIR} /${themeName} /Root/${themeName} "
1355
+ rsync -r --exclude=.svn --exclude=" *~" --exclude= " .DS_Store " " ${themes[$i]} /" " ${PKG_BUILD_DIR} /${themeName} /Root/${themeName} "
1356
1356
packageRefId=$( getPackageRefId " ${packagesidentity} " " ${themeName} " )
1357
1357
addTemplateScripts --pkg-rootdir=" ${PKG_BUILD_DIR} /${themeName} " \
1358
1358
--subst=" themeName=$themeName " \
@@ -1378,7 +1378,7 @@ if [[ ${NOEXTRAS} != *"Clover Themes"* ]]; then
1378
1378
# Don't add christmas and newyear themes if month < 11
1379
1379
[[ $currentMonth -lt 11 ]] && [[ " $themeName " == christmas ]] && continue
1380
1380
mkdir -p " ${PKG_BUILD_DIR} /${themeName} /Root/"
1381
- rsync -r --exclude=.svn --exclude=" *~" " $artwork /${specialThemes[$i]} /" " ${PKG_BUILD_DIR} /${themeName} /Root/${themeName} "
1381
+ rsync -r --exclude=.svn --exclude=" *~" --exclude= " .DS_Store " " $artwork /${specialThemes[$i]} /" " ${PKG_BUILD_DIR} /${themeName} /Root/${themeName} "
1382
1382
packageRefId=$( getPackageRefId " ${packagesidentity} " " ${themeName} " )
1383
1383
addTemplateScripts --pkg-rootdir=" ${PKG_BUILD_DIR} /${themeName} " \
1384
1384
--subst=" themeName=$themeName " \
0 commit comments