dmg のデフォルト アイコンを変更したいのですが、デフォルトの画像ボリューム アイコンを使用する Skype や Dropbox のようにしたいのですが、ファインダーで見つけることができません。どこで見つけられるか分かりますか?
答えてくれてありがとう、ボリス
Ok I didn't find the icon in the finder but you can download the full icon set here : here
Also if you want to set the dmg icon from the cmd line :
cp < your file.icns > < your mounted image path >.VolumeIcon.icns (make sure your dmg is writable)
SetFile -a C < your mounted image path >
The second command line is used to tell the dmg to use the icon once mounted.
If you want to make an icns from any kind of image, have a look at this freeware : img2icns
カスタム ボリューム アイコンを設定する場合は、以下のコマンドを使用します。
/*
SetFile -c icnC will change the creator of the file to icnC
*/
SetFile -c icnC /<your path>/.VolumeIcon.icns
今すぐ読み取り/書き込みdmgを作成します
/*
to set custom icon attribute
*/
SetFile -a C /Volumes/dmgName