diff options
| -rwxr-xr-x | Swift/Packaging/MacOSX/package.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
| @@ -19,13 +19,18 @@ gunzip -c $TEMPLATE > $WC_DMG | |||
| 19 | rm -rf $WC_DIR | 19 | rm -rf $WC_DIR |
| 20 | mkdir -p $WC_DIR | 20 | mkdir -p $WC_DIR |
| 21 | hdiutil attach "$WC_DMG" -noautoopen -quiet -mountpoint "$WC_DIR" | 21 | hdiutil attach "$WC_DMG" -noautoopen -quiet -mountpoint "$WC_DIR" |
| 22 | ditto -rsrc "$APP" "$WC_DIR"/`basename $APP` | 22 | ditto -rsrc "$APP" "$WC_DIR"/`basename $APP` |
| 23 | $QTDIR/bin/macdeployqt "$WC_DIR"/`basename $APP` -no-strip | 23 | $QTDIR/bin/macdeployqt "$WC_DIR"/`basename $APP` -no-strip |
| 24 | |||
| 24 | # The bearer plugins of Qt5 cannot be disabled by an application. | 25 | # The bearer plugins of Qt5 cannot be disabled by an application. |
| 25 | # They will constantly ask the OS to scan for available wireless networks, unrelated to actual API calls. | 26 | # They will constantly ask the OS to scan for available wireless networks, unrelated to actual API calls. |
| 26 | # This results in unnessecary resource load, so we remove the plugins from our packages. | 27 | # This results in unnessecary resource load, so we remove the plugins from our packages. |
| 27 | rm "$WC_DIR"/`basename $APP`/Contents/PlugIns/bearer/*.dylib | 28 | rm "$WC_DIR"/`basename $APP`/Contents/PlugIns/bearer/*.dylib |
| 29 | |||
| 30 | # Remove debugging symbols from the application bundle | ||
| 31 | rm -rf "$WC_DIR"/`basename $APP`/Contents/MacOS/*.dSYM | ||
| 32 | |||
| 28 | hdiutil detach "$WC_DIR" -quiet -force | 33 | hdiutil detach "$WC_DIR" -quiet -force |
| 29 | rm -f $TARGET | 34 | rm -f $TARGET |
| 30 | hdiutil convert "$WC_DMG" -quiet -format UDZO -imagekey zlib-level=9 -o "$TARGET" | 35 | hdiutil convert "$WC_DMG" -quiet -format UDZO -imagekey zlib-level=9 -o "$TARGET" |
| 31 | rm -rf $WC_DMG $WC_DIR | 36 | rm -rf $WC_DMG $WC_DIR |
Swift