Skip to content

Commit

Permalink
Add helper script to extract *.dmg files
Browse files Browse the repository at this point in the history
Useful to check packaging for macOS.
  • Loading branch information
ubruhin committed Jul 19, 2018
1 parent d7d9096 commit 14fe035
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extract_dmg/
12 changes: 12 additions & 0 deletions dev/extract_dmg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

FILENAME="$1"

mkdir -p ./extract_dmg
7z x "$FILENAME" -oextract_dmg -y
sudo mkdir -p ./extract_dmg/mount
sudo mount -t hfsplus -o loop ./extract_dmg/4.hfs ./extract_dmg/mount
rm -rf ./extract_dmg/hfs
cp -r ./extract_dmg/mount ./extract_dmg/hfs
sudo umount ./extract_dmg/mount
sudo rmdir ./extract_dmg/mount

0 comments on commit 14fe035

Please sign in to comment.