Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

fix(installer): drop AppleDouble files and the staged app after zipping

raymondchinsb040017f87db
diff --git a/scripts/package-installer.sh b/scripts/package-installer.sh
index 76499bc..76fad97 100755
--- a/scripts/package-installer.sh
+++ b/scripts/package-installer.sh
@@ -110,7 +110,8 @@ unwanted=$(find "$stage" \( -name valve-packages -o -name 'steam.dmg' -o -name '
# --- zip --------------------------------------------------------------------------
echo "==> writing $zip"
-ditto -c -k --keepParent "$stage" "$zip"
+# --norsrc --noextattr: no AppleDouble ._ files in the zip.
+ditto -c -k --norsrc --noextattr --keepParent "$stage" "$zip"
echo "==> contents"
(cd "$stage_root" && find Bridgeplay -maxdepth 3 ! -path 'Bridgeplay/Bridgeplay.app/*' \
@@ -118,3 +119,7 @@ echo "==> contents"
echo "==> sizes"
(cd "$stage" && du -sh -- * | sed 's/^/ /')
echo "==> $zip $(du -h "$zip" | cut -f1) ($(stat -f %z "$zip") bytes)"
+
+# The staged copy holds a second Bridgeplay.app that Spotlight would list next to the
+# installed one; the zip is the deliverable.
+rm -rf "$stage_root"