* Remove DS_Store, it is now custom generated using

http://freehg.org/u/wiml/dsstore/.  This allows us to have versions in our
  folder names without requiring manual intervention!  It requires dsstore to b$
  installed and runs a modified scripts/osx-dmg-dsstore.pl to generate the
  DS_Store file.

Originally committed to SVN as r2568.
This commit is contained in:
Amar Takhar 2008-12-30 11:38:08 +00:00
parent 00c134e1c9
commit c4e8dd0dfb
4 changed files with 31 additions and 2 deletions

View File

@ -241,6 +241,12 @@ ass_renderer_t* ass_renderer_init(ass_library_t* library)
memset(&text_info, 0, sizeof(text_info)); memset(&text_info, 0, sizeof(text_info));
error = FT_Init_FreeType( &ft ); error = FT_Init_FreeType( &ft );
char path[4096];
*path='\0';
getcwd(path,4096);
printf("PATH: (%s)\n", path);
if ( error ) { if ( error ) {
mp_msg(MSGT_ASS, MSGL_FATAL, MSGTR_LIBASS_FT_Init_FreeTypeFailed); mp_msg(MSGT_ASS, MSGL_FATAL, MSGTR_LIBASS_FT_Init_FreeTypeFailed);
goto ass_init_exit; goto ass_init_exit;

Binary file not shown.

20
scripts/osx-dmg-dsstore.pl Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/perl -w
use Mac::Finder::DSStore qw( writeDSDBEntries makeEntries );
use Mac::Memory qw( );
use Mac::Files qw( NewAliasMinimal );
&writeDSDBEntries("$ARGV[0]",
&makeEntries(".",
BKGD_alias => NewAliasMinimal("$ARGV[2]"),
ICVO => 1,
fwi0_flds => [ 308, 397, 658, 848, "icnv", 0, 0 ],
fwvh => 350,
icgo => "\0\0\0\0\0\0\0\0",
icvo => pack('A4 n A4 A4 n*', "icv4", 90, "none", "botm", 0, 0, 0, 0, 0, 1, 0, 100, 1),
icvt => 12
),
&makeEntries("Applications", Iloc_xy => [ 133, 250 ]),
&makeEntries("$ARGV[1]", Iloc_xy => [ 133, 55 ])
);

View File

@ -32,7 +32,6 @@ echo "---- Setting up ----"
ln -vsf /Applications "${TMP_DMG}" ln -vsf /Applications "${TMP_DMG}"
mkdir -v ${TMP_DMG}/.background mkdir -v ${TMP_DMG}/.background
cp -v packages/osx_dmg/dmg_background.png ${TMP_DMG}/.background/background.png cp -v packages/osx_dmg/dmg_background.png ${TMP_DMG}/.background/background.png
cp -v packages/osx_dmg/DS_Store ${TMP_DMG}/.DS_Store
cp -v packages/osx_bundle/Contents/Resources/Aegisub.icns ${TMP_DMG}/.VolumeIcon.icns cp -v packages/osx_bundle/Contents/Resources/Aegisub.icns ${TMP_DMG}/.VolumeIcon.icns
echo echo
@ -45,13 +44,17 @@ DEV_NAME=`/usr/bin/hdiutil attach -readwrite -noverify -noautoopen "${PKG_NAME_R
echo "Device name: ${DEV_NAME}" echo "Device name: ${DEV_NAME}"
echo echo
echo "---- Setting bless -openfolder \"/Volumes/${PKG_NAME_VOLUME}\" ----" echo "---- Setting bless -openfolder ----"
bless -openfolder "/Volumes/${PKG_NAME_VOLUME}" bless -openfolder "/Volumes/${PKG_NAME_VOLUME}"
echo echo
echo "---- Setting root icon using SetFile ----" echo "---- Setting root icon using SetFile ----"
/usr/bin/SetFile -a C "/Volumes/${PKG_NAME_VOLUME}" /usr/bin/SetFile -a C "/Volumes/${PKG_NAME_VOLUME}"
echo
echo "--- Generating /Volumes/${PKG_NAME_VOLUME}/.DS_Store ----"
/usr/bin/perl scripts/osx-dmg-dsstore.pl "/Volumes/${PKG_NAME_VOLUME}/.DS_Store" "${PKG_DIR}" "/Volumes/${PKG_NAME_VOLUME}/.background/background.png"
echo echo
echo "---- Detaching ----" echo "---- Detaching ----"
/usr/bin/hdiutil detach "${DEV_NAME}" /usr/bin/hdiutil detach "${DEV_NAME}"