Skip to content

Commit 05aa7e5

Browse files
committed
ci: add dmg background image
1 parent ba96e3e commit 05aa7e5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ STATUS_CLIENT_DMG ?= pkg/Status.dmg
726726

727727
$(STATUS_CLIENT_DMG): override RESOURCES_LAYOUT := $(PRODUCTION_PARAMETERS)
728728
$(STATUS_CLIENT_DMG): ENTITLEMENTS ?= resources/Entitlements.plist
729+
$(STATUS_CLIENT_DMG): BG_PNG ? = resources/dmg-background-status.png
729730
$(STATUS_CLIENT_DMG): nim_status_client
730731
rm -rf tmp/macos pkg/*.dmg
731732
mkdir -p $(MACOS_OUTER_BUNDLE)/Contents/MacOS
@@ -758,9 +759,18 @@ endif
758759
echo -e $(BUILD_MSG) "dmg"
759760
mkdir -p pkg
760761
scripts/create-dmg/create-dmg \
762+
--volname "Status" \
763+
--window-pos 200 120 \
764+
--window-size 900 520 \
765+
--background $(BG_PNG) \
766+
--icon-size 128 \
767+
--text-size 13 \
768+
--icon "Status.app" 180 260 \
769+
--hide-extension "Status.app" \
770+
--app-drop-link 720 260 \
771+
--format UDZO \
761772
pkg/Status.dmg \
762-
$(MACOS_OUTER_BUNDLE) || true
763-
# We ignore failure above create-dmg can't skip signing.
773+
$(MACOS_OUTER_BUNDLE) || true # We ignore failure above create-dmg can't skip signing.
764774
# It is just not signed, hence the next command should succeed.
765775
mv "`ls pkg/*.dmg`" $(STATUS_CLIENT_DMG)
766776

1.19 MB
Loading

0 commit comments

Comments
 (0)