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