From 4320235bef1b601856b295a8d6411d1898048802 Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Mon, 7 Sep 2015 16:00:01 +0200
Subject: Remove debuging symbols from packaged Swift.app

Test-Information:

Verified that the debug symbols are gone from the Swift.app
bundle in the packaged DMG image.

Change-Id: Iefb2a5b8eb18587f35143ff344336acb2e69fa1a

diff --git a/Swift/Packaging/MacOSX/package.sh b/Swift/Packaging/MacOSX/package.sh
index 4c7157f..a13a03c 100755
--- a/Swift/Packaging/MacOSX/package.sh
+++ b/Swift/Packaging/MacOSX/package.sh
@@ -21,10 +21,15 @@ mkdir -p $WC_DIR
 hdiutil attach "$WC_DMG" -noautoopen -quiet -mountpoint "$WC_DIR"
 ditto -rsrc "$APP" "$WC_DIR"/`basename $APP`
 $QTDIR/bin/macdeployqt "$WC_DIR"/`basename $APP` -no-strip 
+
 # The bearer plugins of Qt5 cannot be disabled by an application. 
 # They will constantly ask the OS to scan for available wireless networks, unrelated to actual API calls.
 # This results in unnessecary resource load, so we remove the plugins from our packages.
 rm "$WC_DIR"/`basename $APP`/Contents/PlugIns/bearer/*.dylib
+
+# Remove debugging symbols from the application bundle
+rm -rf "$WC_DIR"/`basename $APP`/Contents/MacOS/*.dSYM
+
 hdiutil detach "$WC_DIR" -quiet -force
 rm -f $TARGET
 hdiutil convert "$WC_DMG" -quiet -format UDZO -imagekey zlib-level=9 -o "$TARGET"
-- 
cgit v0.10.2-6-g49f6