aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
authorbamse16 <marius@marius.me.uk>2012-10-05 08:49:47 +0000
committerbamse16 <marius@marius.me.uk>2012-10-05 08:49:47 +0000
commit76d7e65ef0447fe421a77ed2f16c19a83afb17f6 (patch)
treec399ad255c4bac8045376eb528e86e7c5ea00c26 /Scripts
parent01ac565ab319b022c0d6e7877f9446c9c8c21f88 (diff)
downloadsequelpro-76d7e65ef0447fe421a77ed2f16c19a83afb17f6.tar.gz
sequelpro-76d7e65ef0447fe421a77ed2f16c19a83afb17f6.tar.bz2
sequelpro-76d7e65ef0447fe421a77ed2f16c19a83afb17f6.zip
Issue 1470: [REQ] Support for bundling default Themes
Themes will be copied from Default Themes to ~/Library/Application Support/Sequel Pro/Themes, only if a theme with the same name does not exist in that folder.
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/Scripts/build.sh b/Scripts/build.sh
index 9783d9b4..bc5a9d14 100755
--- a/Scripts/build.sh
+++ b/Scripts/build.sh
@@ -73,6 +73,14 @@ mkdir -p "${BUILD_PRODUCT}/Contents/SharedSupport/Default Bundles"
cp -R "${SRCROOT}/SharedSupport/Default Bundles" "${BUILD_PRODUCT}/Contents/SharedSupport"
+# Copy all Default Themes to build product
+rm -rf "${BUILD_PRODUCT}/Contents/SharedSupport/Default Themes"
+
+mkdir -p "${BUILD_PRODUCT}/Contents/SharedSupport/Default Themes"
+
+cp -R "${SRCROOT}/SharedSupport/Default Themes" "${BUILD_PRODUCT}/Contents/SharedSupport"
+
+
# Perform distribution specific tasks if this is a 'Distribution' build
if [ "$CONFIGURATION" == 'Distribution' ]
then