From 588f097c0669debd82977e7d8b66316c095f9845 Mon Sep 17 00:00:00 2001 From: Karmaz95 Date: Sat, 20 Jul 2024 13:48:02 +0200 Subject: [PATCH] Script for packing the app in a compressed DMG container --- App Bundle Extension/custom/make_dmg.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 App Bundle Extension/custom/make_dmg.sh diff --git a/App Bundle Extension/custom/make_dmg.sh b/App Bundle Extension/custom/make_dmg.sh new file mode 100644 index 0000000..d660456 --- /dev/null +++ b/App Bundle Extension/custom/make_dmg.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Variables +APP_NAME="bare_bone.app" +DMG_NAME="bare_bone.dmg" +TEMP_DIR="temp_dmg" + +# Create a temporary directory and copy the app bundle into it +mkdir "$TEMP_DIR" +cp -R "$APP_NAME" "$TEMP_DIR" + +# Create the DMG file +hdiutil create "$DMG_NAME" -srcfolder "$TEMP_DIR" -format UDZO -volname "Bare Bone App" + +# Clean up +rm -rf "$TEMP_DIR" \ No newline at end of file