aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/create_macosx_bundle.sh
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-02-22 14:06:29 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-02-22 14:06:29 -0500
commit306d6d3ca9c9ad774d19135681a7f9805f77035f (patch)
treea3e36ac2cc769162c30a1bcc33e126f7a4f4ccea /SQLiteStudio3/create_macosx_bundle.sh
parent016003905ca0e8e459e3dc33e786beda8ec92f45 (diff)
Imported Upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'SQLiteStudio3/create_macosx_bundle.sh')
-rwxr-xr-xSQLiteStudio3/create_macosx_bundle.sh47
1 files changed, 25 insertions, 22 deletions
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