mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +02:00
* Fixed OS X build scripts.
This commit is contained in:
parent
53ccfcfed3
commit
6d482cf239
Binary file not shown.
@ -19,7 +19,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>tomahawk</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>tomahawk.icns</string>
|
||||
<string>Tomahawk.icns</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Tomahawk</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
|
@ -48,16 +48,19 @@ CREATEDMG='1'
|
||||
header "Running install_name_tool"
|
||||
$ROOT/../admin/mac/deposx.sh
|
||||
|
||||
header "Renaming icon"
|
||||
mv Contents/Resources/tomahawkSources.icns Contents/Resources/tomahawk.icns
|
||||
header "Renaming icon & copying Info.plist"
|
||||
mv Contents/Resources/tomahawkSources.icns Contents/Resources/Tomahawk.icns
|
||||
cp $ROOT/../admin/mac/Info.plist Contents/Info.plist
|
||||
|
||||
header "Copying Sparkle pubkey & framework, and qt.conf"
|
||||
cp $ROOT/../admin/mac/sparkle_pub.pem Contents/Resources
|
||||
cp -R /Library/Frameworks/Sparkle.framework Contents/Frameworks
|
||||
cp $ROOT/../admin/mac/qt.conf Contents/Resources
|
||||
|
||||
header "Renaming app bundle"
|
||||
header "Creating DMG"
|
||||
cd ..
|
||||
mv tomahawk.app Tomahawk.app
|
||||
$ROOT/../admin/mac/create-dmg.sh Tomahawk.app
|
||||
mv Tomahawk.app tomahawk.app
|
||||
|
||||
header "Done!"
|
||||
|
@ -43,11 +43,17 @@ ln -s /Applications "$TMP/Applications"
|
||||
cp -R "$IN" "$TMP"
|
||||
|
||||
# create
|
||||
hdiutil create -srcfolder "$TMP" \
|
||||
-format UDZO -imagekey zlib-level=9 \
|
||||
-scrub \
|
||||
"$OUT" \
|
||||
|| die "Error creating DMG :("
|
||||
hdiutil makehybrid -hfs -hfs-volume-name Tomahawk -hfs-openfolder "$TMP" "$TMP" -o tmp.dmg
|
||||
hdiutil convert -format UDZO -imagekey zlib-level=9 tmp.dmg -o "$OUT"
|
||||
|
||||
# cleanup
|
||||
rm tmp.dmg
|
||||
|
||||
#hdiutil create -srcfolder "$TMP" \
|
||||
# -format UDZO -imagekey zlib-level=9 \
|
||||
# -scrub \
|
||||
# "$OUT" \
|
||||
# || die "Error creating DMG :("
|
||||
|
||||
# done !
|
||||
echo 'DMG size:' `du -hs "$OUT" | awk '{print $1}'`
|
||||
|
Loading…
x
Reference in New Issue
Block a user