Use create-dmg to generate MacOS release (#215)
This commit is contained in:
committed by
Jonas Kvinge
parent
7663c5e149
commit
ff3333e1bf
11
dist/macos/create-dmg.sh.in
vendored
11
dist/macos/create-dmg.sh.in
vendored
@@ -20,14 +20,5 @@ rm -rf "$temp_dir"
|
||||
rm -f "$output_file"
|
||||
|
||||
mkdir -p "$temp_dir"
|
||||
#mkdir -p "$temp_dir/.background"
|
||||
#cp ../dist/macos/dmg_background.png "$temp_dir/.background/background.png"
|
||||
#cp ../dist/macos/DS_Store.in "$temp_dir/.DS_Store"
|
||||
#chmod go-rwx "$temp_dir/.DS_Store"
|
||||
ln -s /Applications "$temp_dir/Applications"
|
||||
# Copies the prepared bundle into the dir that will become the DMG
|
||||
cp -R "$bundle_dir" "$temp_dir"
|
||||
|
||||
# Create dmg
|
||||
hdiutil makehybrid -hfs -hfs-volume-name "$name" -hfs-openfolder "$temp_dir" "$temp_dir" -o tmp.dmg
|
||||
hdiutil convert -format UDZO -imagekey zlib-level=9 tmp.dmg -o "$output_file"
|
||||
create-dmg --volname "$name" --background ../dist/macos/dmg_background.png --app-drop-link 450 218 --icon $bundle_dir 150 218 --window-size 600 450 $output_file $bundle_dir
|
||||
|
||||
BIN
dist/macos/dmg_background.png
vendored
Normal file
BIN
dist/macos/dmg_background.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
Reference in New Issue
Block a user