From 306d6d3ca9c9ad774d19135681a7f9805f77035f Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 22 Feb 2015 14:06:29 -0500 Subject: Imported Upstream version 3.0.3 --- SQLiteStudio3/create_macosx_bundle.sh | 47 +++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 22 deletions(-) (limited to 'SQLiteStudio3/create_macosx_bundle.sh') diff --git a/SQLiteStudio3/create_macosx_bundle.sh b/SQLiteStudio3/create_macosx_bundle.sh index eb7d537..bdad545 100755 --- a/SQLiteStudio3/create_macosx_bundle.sh +++ b/SQLiteStudio3/create_macosx_bundle.sh @@ -9,7 +9,7 @@ if [ "$#" -lt 2 ] || [ "$#" -gt 3 ]; then exit 1 fi -if [ "$#" -eq 3 ] && [ "$3" != "dmg" ] && [ "$3" != "dist" ]; then +if [ "$#" -eq 3 ] && [ "$3" != "dmg" ] && [ "$3" != "dist" ] && [ "$3" != "dist_plugins" ]; then printUsage exit 1 fi @@ -46,26 +46,30 @@ cp -RP ../../../lib/*.dylib SQLiteStudio.app/Contents/Frameworks if [ "$3" == "dmg" ]; then $qt_deploy_bin SQLiteStudio.app -dmg -elif [ "$3" == "dist" ]; then - $qt_deploy_bin SQLiteStudio.app -dmg - - cd $1/SQLiteStudio - VERSION=`SQLiteStudio.app/Contents/MacOS/sqlitestudiocli -v | awk '{print $2}'` - - mv SQLiteStudio.dmg sqlitestudio-$VERSION.dmg - - # App - echo "Building incremental update package: sqlitestudio-$VERSION.zip" - cp -R SQLiteStudio.app app - cd app/Contents - rm -rf PlugIns - rm -rf Frameworks/Qt*.framework - find Frameworks -type l -exec rm -f {} \; - cd .. - zip -r sqlitestudio-$VERSION.zip * - mv sqlitestudio-$VERSION.zip .. - cd .. - rm -rf app +elif [ "$3" == "dist" ] || [ "$3" == "dist_plugins" ]; then + if [ "$3" == "dist" ]; then + $qt_deploy_bin SQLiteStudio.app -dmg + + cd $1/SQLiteStudio + VERSION=`SQLiteStudio.app/Contents/MacOS/sqlitestudiocli -v | awk '{print $2}'` + + mv SQLiteStudio.dmg sqlitestudio-$VERSION.dmg + + # App + echo "Building incremental update package: sqlitestudio-$VERSION.zip" + cp -R SQLiteStudio.app app + cd app/Contents + rm -rf PlugIns + rm -rf Frameworks/Qt*.framework + find Frameworks -type l -exec rm -f {} \; + cd .. + zip -r sqlitestudio-$VERSION.zip * + mv sqlitestudio-$VERSION.zip .. + cd .. + rm -rf app + else + $qt_deploy_bin SQLiteStudio.app + fi # Plugins mkdir Contents Contents/PlugIns @@ -81,7 +85,6 @@ elif [ "$3" == "dist" ]; then rm -f Contents/PlugIns/* done rm -rf Contents - echo "Done." else $qt_deploy_bin SQLiteStudio.app -- cgit v1.2.3