mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-09-29 00:01:44 +02:00
Script for packing the app in a compressed DMG container
This commit is contained in:
1 parent
4a126b3502
commit
588f097c06
1 file changed
+16
@@ -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"
|
||||||
Reference in new issue
Block a user