1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-18 03:29:12 +01:00

Use create-dmg to generate MacOS release (#215)

This commit is contained in:
Martin Delille 2019-07-17 22:05:41 +02:00 committed by Jonas Kvinge
parent 7663c5e149
commit ff3333e1bf
3 changed files with 2 additions and 10 deletions

View File

@ -29,6 +29,7 @@ before_install:
brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav;
brew install chromaprint;
brew install libcdio libmtp libimobiledevice libplist;
brew install create-dmg;
export Qt5_DIR=/usr/local/opt/qt5/lib/cmake;
export Qt5LinguistTools_DIR=/usr/local/opt/qt5/lib/cmake/Qt5LinguistTools;
export PATH="/usr/local/opt/gettext/bin:$PATH";

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB