mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-18 11:39:31 +01:00
Use create-dmg to generate MacOS release (#215)
This commit is contained in:
parent
7663c5e149
commit
ff3333e1bf
@ -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 gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav;
|
||||||
brew install chromaprint;
|
brew install chromaprint;
|
||||||
brew install libcdio libmtp libimobiledevice libplist;
|
brew install libcdio libmtp libimobiledevice libplist;
|
||||||
|
brew install create-dmg;
|
||||||
export Qt5_DIR=/usr/local/opt/qt5/lib/cmake;
|
export Qt5_DIR=/usr/local/opt/qt5/lib/cmake;
|
||||||
export Qt5LinguistTools_DIR=/usr/local/opt/qt5/lib/cmake/Qt5LinguistTools;
|
export Qt5LinguistTools_DIR=/usr/local/opt/qt5/lib/cmake/Qt5LinguistTools;
|
||||||
export PATH="/usr/local/opt/gettext/bin:$PATH";
|
export PATH="/usr/local/opt/gettext/bin:$PATH";
|
||||||
|
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"
|
rm -f "$output_file"
|
||||||
|
|
||||||
mkdir -p "$temp_dir"
|
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
|
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
|
||||||
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"
|
|
||||||
|
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 |
Loading…
Reference in New Issue
Block a user