summaryrefslogtreecommitdiffstats
path: root/packaging/macos/230-inkscape_distrib.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /packaging/macos/230-inkscape_distrib.sh
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/macos/230-inkscape_distrib.sh')
-rwxr-xr-xpackaging/macos/230-inkscape_distrib.sh48
1 files changed, 48 insertions, 0 deletions
diff --git a/packaging/macos/230-inkscape_distrib.sh b/packaging/macos/230-inkscape_distrib.sh
new file mode 100755
index 0000000..2836e2b
--- /dev/null
+++ b/packaging/macos/230-inkscape_distrib.sh
@@ -0,0 +1,48 @@
+#!/usr/bin/env bash
+#
+# SPDX-FileCopyrightText: 2021 René de Hesselle <dehesselle@web.de>
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+### description ################################################################
+
+# Create a disk image for distribution.
+
+### shellcheck #################################################################
+
+# Nothing here.
+
+### dependencies ###############################################################
+
+source "$(dirname "${BASH_SOURCE[0]}")"/jhb/etc/jhb.conf.sh
+
+source "$(dirname "${BASH_SOURCE[0]}")"/src/ink.sh
+
+bash_d_include error
+
+### variables ##################################################################
+
+SELF_DIR=$(dirname "$(greadlink -f "$0")")
+
+### functions ##################################################################
+
+# Nothing here.
+
+### main #######################################################################
+
+error_trace_enable
+
+# Create background for development snapshots. This is not meant for
+# official releases, those will be repackaged eventually (they also need
+# to be signed and notarized).
+LD_LIBRARY_PATH=$LIB_DIR convert -size 560x400 xc:transparent \
+ -font Andale-Mono -pointsize 64 -fill black \
+ -draw "text 20,60 'Inkscape'" \
+ -draw "text 20,120 '$(ink_get_version)'" \
+ -draw "text 20,180 'development'" \
+ -draw "text 20,240 'snapshot'" \
+ -draw "text 20,300 '$(ink_get_repo_shorthash)'" \
+ "$SRC_DIR"/inkscape_dmg.png
+
+# Create the disk image.
+dmgbuild_run "$SELF_DIR"/src/inkscape_dmg.py "$INK_APP_PLIST"