mirror of
https://github.com/david-schmidt/gsport.git
synced 2024-06-28 22:29:38 +00:00
Pretty, pretty icons
This commit is contained in:
parent
13b927ba21
commit
8a755df093
BIN
src/arch/mac/GSportDMG.icns
Normal file
BIN
src/arch/mac/GSportDMG.icns
Normal file
Binary file not shown.
BIN
src/arch/mac/GSportFolder.icns
Normal file
BIN
src/arch/mac/GSportFolder.icns
Normal file
Binary file not shown.
BIN
src/arch/mac/GSportMacInstallBackground.png
Normal file
BIN
src/arch/mac/GSportMacInstallBackground.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 57 KiB |
|
@ -22,19 +22,20 @@ cd $BASE
|
||||||
hdiutil create -megabytes $MEGABYTES $DEST$TEMP.dmg -layout NONE
|
hdiutil create -megabytes $MEGABYTES $DEST$TEMP.dmg -layout NONE
|
||||||
MY_DISK=`hdid -nomount $DEST$TEMP.dmg`
|
MY_DISK=`hdid -nomount $DEST$TEMP.dmg`
|
||||||
newfs_hfs -v $VOLUME $MY_DISK
|
newfs_hfs -v $VOLUME $MY_DISK
|
||||||
|
rm -rf /Volumes/$VOLUME/.Trashes
|
||||||
|
rm -rf /Volumes/$VOLUME/.fseventsd
|
||||||
hdiutil eject $MY_DISK
|
hdiutil eject $MY_DISK
|
||||||
hdid $DEST$TEMP.dmg
|
hdid $DEST$TEMP.dmg
|
||||||
chflags -R nouchg,noschg "$SRC"
|
chflags -R nouchg,noschg "$SRC"
|
||||||
ditto -rsrcFork -v "$SRC" "/Volumes/$VOLUME"
|
ditto -rsrcFork -v "$SRC" "/Volumes/$VOLUME"
|
||||||
|
|
||||||
|
mypwd=`pwd`
|
||||||
mkdir "/Volumes/$VOLUME/.background"
|
mkdir "/Volumes/$VOLUME/.background"
|
||||||
cp ./lib/arch/mac/GSportMacInstallBackground.png "/Volumes/$VOLUME/.background/background.png"
|
cp ./src/arch/mac/GSportMacInstallBackground.png "/Volumes/$VOLUME/.background/background.png"
|
||||||
cp GSportDMG.icns "/Volumes/$VOLUME/.VolumeIcon.icns"
|
cp ./src/arch/mac/GSportDMG.icns "/Volumes/$VOLUME/.VolumeIcon.icns"
|
||||||
SetFile -c icns "/Volumes/$VOLUME/.VolumeIcon.icns"
|
SetFile -c icns "/Volumes/$VOLUME/.VolumeIcon.icns"
|
||||||
SetFile -a C /Volumes/$VOLUME
|
SetFile -a C /Volumes/$VOLUME
|
||||||
./lib/arch/mac/setfileicon GSportFolder.icns /Volumes/$VOLUME/$VOLUME
|
./lib/arch/mac/setfileicon ./src/arch/mac/GSportFolder.icns /Volumes/$VOLUME/$VOLUME
|
||||||
rm -rf /Volumes/$VOLUME/.Trashes
|
|
||||||
rm -rf /Volumes/$VOLUME/.fseventsd
|
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
tell application "Finder"
|
tell application "Finder"
|
||||||
|
@ -47,7 +48,7 @@ echo '
|
||||||
set theViewOptions to the icon view options of container window
|
set theViewOptions to the icon view options of container window
|
||||||
set arrangement of theViewOptions to not arranged
|
set arrangement of theViewOptions to not arranged
|
||||||
set icon size of theViewOptions to 72
|
set icon size of theViewOptions to 72
|
||||||
#set background picture of theViewOptions to file ".background:background.png"
|
set background picture of theViewOptions to file ".background:background.png"
|
||||||
make new alias file at container window to POSIX file "/Applications" with properties {name:"Applications"}
|
make new alias file at container window to POSIX file "/Applications" with properties {name:"Applications"}
|
||||||
set position of item "'${VOLUME}'" of container window to {83, 101}
|
set position of item "'${VOLUME}'" of container window to {83, 101}
|
||||||
set position of item "Applications" of container window to {242, 101}
|
set position of item "Applications" of container window to {242, 101}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user